예제 #1
0
        public static void StopAudioRec()
        {
            string test = string.Format("save recsound \"{0}\"", ScapBackendConfig.DefaultCapture.Dir + "AudioCap.wav");

            Winmm.mciSendString(string.Format("{0}", test), "", 0, 0);
            Winmm.mciSendString("close recsound ", "", 0, 0);
        }
예제 #2
0
 public static void ResumeAudioRec()
 {
     Winmm.mciSendString("record recsound", "", 0, 0);
 }
예제 #3
0
 public static void PauseAudioRec()
 {
     Winmm.mciSendString("pause recsound", "", 0, 0);
 }
예제 #4
0
 public static void StartAudioRec()
 {
     Winmm.mciSendString("open new Type waveaudio Alias recsound", "", 0, 0);
     Winmm.mciSendString("record recsound", "", 0, 0);
 }