Inheritance: IWavePlayer
示例#1
0
文件: Program.cs 项目: residuum/libpd
 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();
     }
 }
示例#2
0
 public static void CreateOutput()
 {
     _client = new Processor ("testNaudioOut", 0, 2);
     _jackOut = new JackOut (_client);
 }
 public NAudioJack(IWaveProvider provider)
 {
     _waveProvider = provider;
     _jackProcessor = new Processor("PremierLeague", audioOutPorts:2, autoconnect:true);
     _soundOutput = new JackOut(_jackProcessor);
 }