|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
mcisendstring stereo problemHi 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
Show quote
Hide quote
On Jun 9, 8:43 am, "mickey" <mickmarsh***@earthlink.net> wrote: are you using Vista? If so look here> 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 http://social.msdn.microsoft.com/Forums/en-US/windowspro-audiodevelopment/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 Show quoteHide quote "HardySpicer" <gyansor***@gmail.com> wrote in message are you using Vista? If so look herenews: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 http://social.msdn.microsoft.com/Forums/en-US/windowspro-audiodevelopment/thread/b0a6e441-5a79-45cb-9973-d29486be33e1 Hardy
Variable String Limit
form top most when ran from sub main Copy Constructor needed in VB.NET 2.0? Shared Assembly FILE I/O Inheritance? Interface? Creating a list of a class OT: App respository Autosize the last column in a ListView control using WndProc [2008] Collection of DipSwitches Web Site Images |
|||||||||||||||||||||||