title: How to output multiple sounds with SDL?
body: <p>I have a library to decode some audio data into PCM and it works fine with Alsa.</p>
  
  <p>I chose SDL to abstract the audio output because SDL is platform-independent. I rewrote it to use SDL to output the audio and it works. However, I want to output multiple sounds simultaneously and SDL only supports one sound per time.</p>
  
  <p>What should I do? </p>
  
  <p>I can use other audio library if it is free, lightweight and supports Linux, Windows XP and Android 2.3.</p>
  
  <p>EDIT: Instead of decoding the entire audio data and filling the audio buffer, I have to fill the buffer partially on each iteration. Loops or callback functions are the solution to fill the next audio frame to play.</p>