private void sampleReady(object state, bool timeout) { AudioSampleReadyEventHandler del = OnAudioSampleReady; if (del != null) { AudioSampleReadyEventArgs arg = new AudioSampleReadyEventArgs(timeout); del(this, arg); } _audioSampleReadyRegistered = ThreadPool.RegisterWaitForSingleObject( _audioSampleReady, new WaitOrTimerCallback(sampleReady), null, -1, true); }
private void sampleReady(object state, bool timeout) { AudioSampleReadyEventHandler del = OnAudioSampleReady; if (del != null) { AudioSampleReadyEventArgs arg = new AudioSampleReadyEventArgs(); del(this, arg); } //_audioSampleReadyRegistered = ThreadPool.RegisterWaitForSingleObject( // _audioSampleReady, new WaitOrTimerCallback(test), null, -1, true); }