mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Fix multiple theme songs playing
This commit is contained in:
parent
93f7abfa3b
commit
d86309f8f0
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ class ThemeSongPlayer
|
||||||
volume: ThemeSongVolume,
|
volume: ThemeSongVolume,
|
||||||
url: String,
|
url: String,
|
||||||
) {
|
) {
|
||||||
|
stop()
|
||||||
val volumeLevel =
|
val volumeLevel =
|
||||||
when (volume) {
|
when (volume) {
|
||||||
ThemeSongVolume.UNRECOGNIZED,
|
ThemeSongVolume.UNRECOGNIZED,
|
||||||
|
|
@ -64,5 +65,6 @@ class ThemeSongPlayer
|
||||||
fun stop() {
|
fun stop() {
|
||||||
player?.stop()
|
player?.stop()
|
||||||
player?.release()
|
player?.release()
|
||||||
|
player = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue