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); }
public static void ResumeAudioRec() { Winmm.mciSendString("record recsound", "", 0, 0); }
public static void PauseAudioRec() { Winmm.mciSendString("pause recsound", "", 0, 0); }
public static void StartAudioRec() { Winmm.mciSendString("open new Type waveaudio Alias recsound", "", 0, 0); Winmm.mciSendString("record recsound", "", 0, 0); }