Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: playing many sounds independently

$
0
0

Hi. In my app I need to play many sounds independently. From reading discussions and examples I am assuming I should use WaveMixerStream32. I have no idea how to connect all elements so they work properly. For me schema of using it looks like:  many(WaveReader->WaveChannel )->WaveMixer->DirectOut  . But in this schema only DirectOut has Play() and Pause() methods - so how can I Play and Stop files separately?

I would like to have the possibility of starting and finishing playback of sounds for example when some events are firing (i.e. playSound1(), playSound2(), stopsSound1(), stopSound2() - fired by different buttons).

Can you give me some examples how can I achieve this?


Viewing all articles
Browse latest Browse all 5831

Trending Articles