krutobargain.blogg.se

System pause not working
System pause not working











system pause not working

Private Sub btnRecord_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRecord.ClickĮrr = mciSendString("open new type waveaudio alias MyRecording", Nothing, 0, 0)Ĭonsole.WriteLine("open new type waveaudio alias MyRecording " & err)Įrr = mciSendString("record MyRecording", Nothing, 0, 0)Ĭonsole.WriteLine("record MyRecording " & err) Private Shared Function mciSendString(ByVal command As String, ByVal buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hwndCallback As IntPtr) As Integer Here is what I have so far: Imports ĭim sMyRecordingFile As String = "D:\Company\Audio.wav" No errors reported.ĮDIT: I'm running under Windows 7 SP1 - in a Domain if that matters. NET 4.From what I can find on various forums it should "just work." - but doesn't. I'm using Visual Studio 2010 Pro in VB.net. When I click Pause it continues to record. I have a basic recorder with one label and three buttons, Record, Pause/Resume, and Save.













System pause not working