mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-26 12:27:44 +00:00
I'm going to reuse that code for an actual drag/drop example later, but for simplicity and accessibility of the examples, this is just going to load two wavs and loop them, so you get the music with a sword-clinking sound mixed over it.
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.