Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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);
 }