You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sdl/examples/audio/04-multiple-streams
Ryan C. Gordon f7cadcba84
examples: Use SDL_GetAudioStreamQueued, not SDL_GetAudioStreamAvailable.
The "available" side is at the mercy of whatever format the hardware wants,
but we control what we queued.

Fixes #12403.
4 months ago
..
README.txt examples/audio/04-multiple-streams: Note about web browser audio in README. 7 months ago
multiple-streams.c examples: Use SDL_GetAudioStreamQueued, not SDL_GetAudioStreamAvailable. 4 months ago

README.txt

If you're running this in a web browser, you need to click the window before you'll hear anything!

This example code loads two .wav files, puts them an audio streams and binds
them for playback, repeating both sounds on loop. This shows several streams
mixing into a single playback device.