示例#1
0
 public void PrepareAudio()
 {
     if (_soundOutput.PlaybackState != PlaybackState.Stopped)
     {
         return;
     }
     _soundOutput.Init(_waveProvider);
     _soundOutput.Play();
 }
示例#2
0
 static void PlayWithJack()
 {
     using (Processor processor = new Processor("PdTest", 0, 2, 0, 0, true))
         using (IWavePlayer output = new JackOut(processor))
             using (NewApiPdProvider pd = new NewApiPdProvider()) {
                 output.Init(pd);
                 output.Play();
                 Console.ReadLine();
                 output.Stop();
             }
 }