Home All Groups Group Topic Archive Search About

mcisendstring stereo problem

Author
9 Jun 2009 3:43 PM
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

Author
10 Jun 2009 9:55 AM
HardySpicer
Show quote Hide quote
On Jun 9, 8:43 am, "mickey" <mickmarsh***@earthlink.net> wrote:
> 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/Forums/en-US/windowspro-audiodevelopment/thread/b0a6e441-5a79-45cb-9973-d29486be33e1


Hardy
Author
10 Jun 2009 2:39 PM
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

Show quoteHide quote
"HardySpicer" <gyansor***@gmail.com> wrote in message
news:2336fbd6-ee66-4204-bc85-556d154c684b@s28g2000vbp.googlegroups.com...
On Jun 9, 8:43 am, "mickey" <mickmarsh***@earthlink.net> wrote:
> 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/Forums/en-US/windowspro-audiodevelopment/thread/b0a6e441-5a79-45cb-9973-d29486be33e1


Hardy