refactor: improve player lifecycle

This commit is contained in:
2026-07-08 16:21:59 +02:00
parent 2399a440dd
commit d6d99fb142
3 changed files with 23 additions and 9 deletions
@@ -79,9 +79,11 @@ internal class AndroidAudioPlayer(
override fun stop() {
player.stop()
_playbackState.value = PlaybackState.IDLE
}
override fun release() {
player.release()
_playbackState.value = PlaybackState.IDLE
}
}