Minor hardening of music against OpenAL quirks (#5586)

This commit is contained in:
SomeTroglodyte 2021-10-28 21:00:14 +02:00 committed by GitHub
parent db6e588479
commit 8c781bc0d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()