Ejemplo n.º 1
0
 public void WaveOut()
 {
     AudioProvider audio = new AudioProvider(3, 2, 50);
     Assert.AreEqual(audio.Latency, audio.waveOut.DesiredLatency);
     Assert.AreEqual(audio.Buffers, audio.waveOut.NumberOfBuffers);
     audio.waveOut.Volume = 0;
     audio.Play();
     Assert.AreEqual(audio.waveOut.PlaybackState, NAudio.Wave.PlaybackState.Playing);
     audio.waveOut.Stop();
     Assert.AreEqual(audio.waveOut.PlaybackState, NAudio.Wave.PlaybackState.Stopped);
 }