flame-engine / flame_audio

Audio capabilities and helpers for playing sounds, music and effects on Flame games
MIT License
7 stars 6 forks source link

BGM music keeps playing even after app is minimised #10

Closed YohanWadia closed 3 years ago

YohanWadia commented 3 years ago

Hey after checking on discord .... it seems like this is a bug

Im working with the latest FlameAudio with flame rc5 BUT everytime I press HOME button, the BGM music keeps on playing. I have to knocked the app out via the task manager to kill the music. It doesnt happen with the BACK button.... Only with the HOME button. Any idea how to solve this?

luanpotter commented 3 years ago

Did you initialize the Bgm instance you are using? That should bind it as a listener to the

didChangeAppLifecycleState

event. Can you add a println to that method to make sure it's called and if so what's the vent (ie is it an issue with Flutter events or an issue with our controlling of the audioplayer instance)?