title: playbackstopped not raised -Naudio
body: <p>I just want to display the messagebox inside the audioOutput_PlaybackStopped. Anybody can help? I used Naudio.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public void playRecordedUser()
          {
  
              pcm = new WaveChannel32(new WaveFileReader(@"D:\2.wav"));
              //.PadWithZeroes = false;
             reductionStream = new BlockAlignReductionStream(pcm);
              waveOutDevice = new DirectSoundOut();
              waveOutDevice.PlaybackStopped += new EventHandler&lt;StoppedEventArgs&gt;(audioOutput_PlaybackStopped);
              waveOutDevice.Init(reductionStream);
              waveOutDevice.Play();
             // pcm.Close();
             // waveOutDevice.Dispose();
          }
  
          void audioOutput_PlaybackStopped(object sender, StoppedEventArgs e)
          {
              MessageBox.Show("hey");
              waveOutDevice.Stop();
              reductionStream.Close();
              waveOutDevice.Dispose();
              waveOutDevice = null;
              pcm.Close();
          }
  </code></pre>