Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Naudio,how to tell playback is completed
- wfr = new NAudio.Wave.WaveFileReader(this.outputFilename);
- audioOutput = new DirectSoundOut();
- WaveChannel32 wc = new NAudio.Wave.WaveChannel32(wfr);
- audioOutput.Init(wc);
- audioOutput.PlaybackStopped += new EventHandler<StoppedEventArgs>(audioOutput_PlaybackStopped);
- audioOutput.Play();
Add Comment
Please, Sign In to add comment