WaveLib.WaveInBuffer.WaitFor C# (CSharp) Method

WaitFor() public method

public WaitFor ( ) : void
return void
        public void WaitFor()
        {
            if (m_Recording)
                m_Recording = m_RecordEvent.WaitOne();
            else
                Thread.Sleep(0);
        }

Usage Example

Beispiel #1
0
        private void WaitForAllBuffers()
        {
            WaveInBuffer Buf = m_Buffers;

            while (Buf.NextBuffer != m_Buffers)
            {
                Buf.WaitFor();
                Buf = Buf.NextBuffer;
            }
        }
All Usage Examples Of WaveLib.WaveInBuffer::WaitFor