mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Minor hardening of music against OpenAL quirks (#5586)
This commit is contained in:
parent
db6e588479
commit
8c781bc0d2
@ -162,7 +162,7 @@ class MusicTrackController(private var volume: Float) {
|
|||||||
if (!music.isPlaying) // for fade-over this could be called by the end of the previous track
|
if (!music.isPlaying) // for fade-over this could be called by the end of the previous track
|
||||||
music.play()
|
music.play()
|
||||||
true
|
true
|
||||||
} catch (ex: Exception) {
|
} catch (ex: Throwable) {
|
||||||
println("Exception playing music: ${ex.message}")
|
println("Exception playing music: ${ex.message}")
|
||||||
if (MusicController.consoleLog)
|
if (MusicController.consoleLog)
|
||||||
ex.printStackTrace()
|
ex.printStackTrace()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user