Closed
Description
I am using a custom AudioStream to play audio in my emulator. However, I noticed that if the computer goes in sleep mode while the emulator is running, once the computer has booted back up the program will have no audio whatsoever and there is no chance of it coming back; only closing and reopening the emulator works.
I am initializing a custom audio stream with LoadAudioStream()
and then manipulating it by calling SetAudioStreamCallback()
with a custom function that populates the audio frames.
Is there a function that lets me detect the standby state to close the stream and to open a new one? Or am I missing something?