Esempio n. 1
0
        public WavePipe(IWaveInSource waveIn, IWaveOutSource waveOut, IWavePipeConfiguration configuration)
        {
            _configuration = configuration;
            _threadInfo    = new WavePipeThreadInfo(waveIn, waveOut, _configuration);
            var thread = new Thread(WavePipeThreadProc);

            if (!_configuration.IsThreadCompatible)
            {
                _threadInfo.Initialize();
            }
            else
            {
                thread.Priority = ThreadPriority.AboveNormal;
            }

            thread.Start(_threadInfo);
        }
Esempio n. 2
0
 public WindowsWaveInDevice(int index)
 {
     Capabilities = WaveInEvent.GetCapabilities(index);
     _source      = new WindowsWaveInSource(this, index);
 }
 public WavePipeThreadInfo(IWaveInSource waveIn, IWaveOutSource waveOut, IWavePipeConfiguration configuration)
 {
     _waveInDevice  = waveIn;
     _waveOutDevice = waveOut;
     _configuration = configuration;
 }