Files
SDL/src
Ryan C. Gordon fd75a4ca05 emscriptenaudio: Deal with blocked audio devices better.
Now, if the AudioContext starts in a "suspended" state, because the browser
blocked it from playing by default, we we run the audio "thread" in a timer
and throw away the generated audio. Once the AudioContext is allowed to
resume, we clear this timer.

The end result is that the app will continue to drain its audio queue
instead of consuming more memory over time (and, if it relies on an audio
callback to make progress, continue to run!), with the effect that the
page is merely silent but otherwise functioning as intended.

Once the user interacts with the page and the browser permits the the
AudioContext to run for real, audio should still be in sync, instead of
just starting to play audio that might now be at least several seconds behind.
2023-08-23 14:32:23 -04:00
..
2023-07-03 12:46:47 -07:00
2023-08-08 22:25:04 -07:00
2023-05-26 08:33:15 -07:00
2023-01-09 09:41:41 -08:00
2023-01-09 09:41:41 -08:00
2023-01-09 09:41:41 -08:00
2023-01-09 09:41:41 -08:00
2023-01-09 09:41:41 -08:00