mcisendstring stereo problem

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
 
H

HardySpicer

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
 
M

mickey

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top