I read thread184-962816 and could not get the save function to work. Here is what I am trying to do:
1: Record Audio from either the Aux, Mic port of the sound card. 2: Save the recording to a file.
Hi Mike,
When I press the record button the message "Recording" appear I wait 30 seconds and press Stop. The message Stopping Recording appear. I look in my temp directory and the recording did not save. No error message etc.
I placed these codes inside a container class. Yet I did test it in a prg with the same results.
LPARAMETER pcFName
MESSAGEBOX(pcFName)
IF NOT EMPTY(THIS.DEVICE)
THIS.SendString('close '+THIS.DEVICE)
ENDIF
THIS.DEVICE = 'mywaveaudio'
THIS.SendString('open new type waveaudio alias '+THIS.DEVICE+' buffer 6')
THIS.SendString('record '+THIS.DEVICE)
Hmm. Can't see anything obviously wrong with your code.
I suggest you step through the Stop/Save Button code in the debugger, to check that it is actually executing the SendString (and checking the string that you are sending is what you are expecting).
Also, does the call to mciSendString return something other than zero? If so, that might indicate an error code. Check Bill's last piece of code in the other thread to see the meaning of the error codes. Also here:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.