Guest User

Untitled

a guest
Sep 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Naudio,how to tell playback is completed
  2. wfr = new NAudio.Wave.WaveFileReader(this.outputFilename);
  3. audioOutput = new DirectSoundOut();
  4. WaveChannel32 wc = new NAudio.Wave.WaveChannel32(wfr);
  5. audioOutput.Init(wc);
  6. audioOutput.PlaybackStopped += new EventHandler<StoppedEventArgs>(audioOutput_PlaybackStopped);
  7. audioOutput.Play();
Add Comment
Please, Sign In to add comment