<div class="gmail_quote">Hello Vishal,<div><br></div><div>Do not even think of playing each stream in separate thread! :) That's not the way.</div><div>Yes, you will have to create multiply decoder instances for each audio stream. And you will have to create one playback device.</div>
<div>Your application should have one playback thread where you'll iterate over the streams (e.g. data can be stored in stl container) and "mix it by hand". Just google mixing audio stream, it's pretty easy.</div>
<div>I can't provide you with the exact code but the main idea of mixing is - "sum all data to one float buffer". </div><div><br></div><div>Regards, </div><div>Anthony</div>
</div><br>