ZenoArrows / The-Simpsons-Hit-and-Run

Switch port of The Simpsons: Hit & Run original source code from 2003
92 stars 3 forks source link

Audio crackles and sound effects stop playing when returning from standby #1

Open ZenoArrows opened 9 months ago

ZenoArrows commented 9 months ago

If the console is brought back from standby while the game was suspended results in heavy audio issues.

Only workaround right now is to save the game and restart it.

ITotalJustice commented 9 months ago

i assume you're using sdl for audio? on wakeup, you could close the audio device and then re-open it. this should fix it. iirc some sdl apps have this problem...although some don't. not sure why this is

ZenoArrows commented 8 months ago

@ITotalJustice I am indeed using SDL, but only through OpenAL-Soft. So re-opening the audio device isn't that simple here, besides I prefer finding the root cause rather than implementing a band-aid solution.

Raffy55 commented 8 months ago

Hi, I'm not too familiar with the technicalities of homebrew but what is SDL? How do I know if I am using an SDL app or not? Also, how do you close the audio device and then re-open it?

Raffy55 commented 8 months ago

And just for info, I updated to 0.4 and the audio still crackles after returning from standby/sleep.

ZenoArrows commented 8 months ago

It's a known issue, will take a bit to fix, but definitely want to fix it before version 1.0. All the talk about SDL and audio devices is only relevant for development, it's not something you can control.

Raffy55 commented 8 months ago

Ahh gotcha. Thanks!