Пример #1
0
        private void RequestDataFromAll()
        {
            WaveInBuffer loCurrentBuffer = m_Buffer.NextBuffer;

            do
            {
                WaveInBuffer loNextBuffer = loCurrentBuffer.NextBuffer;
                loCurrentBuffer.RequestData();
                loCurrentBuffer = loNextBuffer;
            } while (loCurrentBuffer != m_Buffer);
            m_Buffer.RequestData();
        }
Пример #2
0
        private void ThreadProc()
        {
            while (!m_ThreadEnd)
            {
                SwitchBuffer();
                m_CurrentBuffer.WaitForData();

                SwitchBuffer();

                if (!m_ThreadEnd)
                {
                    onProcessed(m_CurrentBuffer.Data, m_CurrentBuffer.Size);
                    m_CurrentBuffer.RequestData();
                }
            }
        }