title: Programming Linux application to play multiple sounds simultaneously
body: <p>I've got a need to write a Linux application that does the following:</p>
  
  <ul>
  <li>1- Continuously play a <code>WAV</code> file in the background. So the entire
  time the application is running this background music plays.</li>
  <li>2- Be able to play short sounds when certain events happen while the background music continues to play.</li>
  </ul>
  
  <p>What is required to mix in the additional event sounds when they happen with the background music so that both are heard at the same time?</p>
  
  <p>I've never written Linux sound code, so this is ALL new to me. I'm assuming that I will need to write to the <code>ALSA</code> API? Or some other library that will facilitate this? </p>
  
  <p>If somebody could provide sample code to get me started I would greatly appreciate it. After a few days I will create a bounty and provide a good deal of reputation for sample code that does what is needed.</p>