Open nico-abram opened 6 months ago
"Pausing" the audio device just feeds silence to the hardware, so that definitely won't do it.
I wasn't aware of this behavior on Windows. I'll have to look into it. I'm not sure if it's something we can workaround, short of the app closing the device when not using it.
Running
powercfg /requests
on windows while running the sample below printsNote: The sample must be ran in a folder containing a
sample.wav
file such as the ./test/sample.wav in the repo.This prevents windows from going to sleep. I've tried setting SDL_HINT_VIDEO_ALLOW_SCREENSAVER and pausing via
SDL_PauseAudioDevice
I'm not sure if this is intended behaviour or a bug.