コード例 #1
0
ファイル: WaveIn.cs プロジェクト: zz110/RemoteControl-1
        /// <summary>
        /// Stops recording.
        /// </summary>
        public void Stop()
        {
            if (!m_IsRecording)
            {
                return;
            }
            m_IsRecording = false;

            int result = WavMethods.waveInStop(m_pWavDevHandle);

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