Monday, 15 March 2010

naudio - how to play more than one wav file in c#.net -



naudio - how to play more than one wav file in c#.net -

i need play more 1 wav file simultaneously (at same time). must have alternative volume command , stop, pause, , play.

i using naudio dll this. works fine times application goes crash.

this code:

_wavout = new waveout(); _wavreader = new wavefilereader(soundfilepath); _wavreader = (wavefilereader)waveformatconversionstream.createpcmstream( _wavreader); _wavout.init(_wavreader); _wavout.play();

this stack trace get:

at naudio.wave.waveoutbuffer.writetowaveout() @ naudio.wave.waveoutbuffer.ondone() @ naudio.wave.waveout.callback(intptr, wavemessage, intptr, naudio.wave.waveheader, intptr)

if you're using soundplayer, impossible.

c# naudio

No comments:

Post a Comment