Пример #1
0
        /// <summary>
        /// Starts recording.
        /// </summary>
        public void Start()
        {
            if (m_IsRecording)
            {
                return;
            }
            m_IsRecording = true;

            int result = WavMethods.waveInStart(m_pWavDevHandle);

            if (result != MMSYSERR.NOERROR)
            {
                throw new Exception("Failed to start wav device, error: " + result + ".");
            }
        }