Пример #1
0
 static void PlayWithWasapi()
 {
     using (IWavePlayer output = new WasapiOut(AudioClientShareMode.Shared, 10))
         using (PdProvider pd = new PdProvider())
         {
             output.Init(pd);
             output.Play();
             Console.ReadLine();
             output.Stop();
         }
 }
Пример #2
0
 static void PlayWithWasapi()
 {
     using (IWavePlayer output = new WasapiOut(AudioClientShareMode.Shared, 10))
     using (PdProvider pd = new PdProvider())
     {
         output.Init(pd);
         output.Play();
         Console.ReadLine();
         output.Stop();
     }
 }
Пример #3
0
 static void PlayWithJack()
 {
     using (Processor processor = new Processor("PdTest", 0, 2, 0, 0, true))
         using (IWavePlayer output = new JackOut(processor))
             using (PdProvider pd = new PdProvider())
             {
                 output.Init(pd);
                 output.Play();
                 Console.ReadLine();
                 output.Stop();
             }
 }
Пример #4
0
 static void PlayWithJack()
 {
     using (Processor processor = new Processor("PdTest", 0, 2, 0, 0, true))
     using (IWavePlayer output = new JackOut(processor))
     using (PdProvider pd = new PdProvider())
     {
         output.Init(pd);
         output.Play();
         Console.ReadLine();
         output.Stop();
     }
 }