mcisendstring stereo problem

  • Thread starter Thread starter mickey
  • Start date Start date
M

mickey

Hi All
I'm using vb.net to record a wave file with mciSendString.
I can record from the microphone or from a line in jack. However, I can only
record mono, 8 bits, 11025 sample rate.
channgin anyone of these parameters results in ""The specified parameter is
out of range for the specified command."; error 0x11A.
here is a code snippet:
Result = mciSendString("set recsound channels 2 wait", ReturnString,
1024, 0)
If Not Result = 0 Then
errormsg = mciGetErrorString(Result, ErrorString.Value, 1024)
MsgBox(ErrorString.Value, 0, "Error (channels)")
End If

Thanks in Advance
Mickey
 
Hi All
I'm using vb.net to record a wave file with mciSendString.
I can record from the microphone or from a line in jack. However, I can only
record mono, 8 bits, 11025 sample rate.
channgin anyone of these parameters results in ""The specified parameter is
out of range for the specified command."; error 0x11A.
here is a code snippet:
        Result = mciSendString("set recsound channels 2 wait", ReturnString,
1024, 0)
        If Not Result = 0 Then
            errormsg = mciGetErrorString(Result, ErrorString.Value, 1024)
            MsgBox(ErrorString.Value, 0, "Error (channels)")
        End If

Thanks in Advance
Mickey

are you using Vista? If so look here

http://social.msdn.microsoft.com/Fo...t/thread/b0a6e441-5a79-45cb-9973-d29486be33e1


Hardy
 
Thanks
I thought that it was probably Vista related but currently, don't have
access to other OS platforms for developing.
I also figured it was either timing or order related.
I was just about to settle down for a long boring coding session when I
decided that someone else must have already seen this and resolved it.

Thanks Again
Mickey

Hi All
I'm using vb.net to record a wave file with mciSendString.
I can record from the microphone or from a line in jack. However, I can
only
record mono, 8 bits, 11025 sample rate.
channgin anyone of these parameters results in ""The specified parameter
is
out of range for the specified command."; error 0x11A.
here is a code snippet:
Result = mciSendString("set recsound channels 2 wait", ReturnString,
1024, 0)
If Not Result = 0 Then
errormsg = mciGetErrorString(Result, ErrorString.Value, 1024)
MsgBox(ErrorString.Value, 0, "Error (channels)")
End If

Thanks in Advance
Mickey

are you using Vista? If so look here

http://social.msdn.microsoft.com/Fo...t/thread/b0a6e441-5a79-45cb-9973-d29486be33e1


Hardy
 
Back
Top