Home All Groups Group Topic Archive Search About

winsendmessge stereo problem

Author
9 Jun 2009 2:06 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
9 Jun 2009 2:40 PM
mayayana
You posted this in the VB API group, which
is for VB only, not VB.Net. "Nobody" told you
as much and then gave you the address of a
VB.Net group. So why are you posting here?!

This group is for VB.

  VB is very different from VB.Net. They have almost
nothing in common other than a somewhat similar
language syntax. (VB is to VB.Net like C++ is to Java.)
Therefore they have different newsgroups.

..Net groups will have "dotnet" or "vsnet" in
their names. If it says "vb" but doesn't say
"dotnet" then it's a group for VB and not
for VB.Net.

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb


---- VB / VB.Net differences -- general explanation ---

  If you are new to VB.Net, you need to know that there
are "two VBs" in use, which are entirely different beyond
their similar syntax. They are radically different programming
systems. VB is a COM-centric system for creating compiled
software. .Net is a Java clone that runs on top of a "virtual
machine", the .Net Framework. VB does not use the .Net
objects. VB.Net is not directly COM compatible. The only
thing in common between the two is a visual similarity in
the language syntax.

  Likewise, there are two kinds of VB newsgroups.

  Microsoft dropped ".Net" from the name "VB.Net" as
part of their marketing strategy to sell .Net to VB developers.
Adding to that confusion, VB.Net has been named with several
versioning systems. There is .Net v. 1, 1.1, 2 and 3. There is .Net
2005 and .Net 2008. And sometimes the VB.Net versions
are referred to as VB7, VB8 and VB9, even though VB.Net is
not a continuation of VB6! These days, anything other than
VB5 or VB6 is probably VB.Net.

  You need to be aware of the difference between "the two VBs"
when looking for newsgroups. The same applies when searching
for sample code. VB and VB.Net code can look very similar in
some cases, but code in one system is not applicable to the other.





Show quoteHide quote
> 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:50 AM
Bill McCarthy
Mayayana,

Why do you continue to post that nonsense of yours in here ?  Why are you
deliberately trying to mislead people ??

Show quoteHide quote
"mayayana" <mayaXXy***@rcXXn.com> wrote in message
news:u$vtKCR6JHA.936@TK2MSFTNGP06.phx.gbl...
>>
> ---- VB / VB.Net differences -- general explanation ---
>
>  If you are new to VB.Net, you need to know that there
> are "two VBs" in use, which are entirely different beyond
> their similar syntax. They are radically different programming
> systems. VB is a COM-centric system for creating compiled
> software. .Net is a Java clone that runs on top of a "virtual
> machine", the .Net Framework. VB does not use the .Net
> objects. VB.Net is not directly COM compatible. The only
> thing in common between the two is a visual similarity in
> the language syntax.
>
>  Likewise, there are two kinds of VB newsgroups.


For those unfamiliar with VB, the .NET based version of VB , VB7 was
released in 2002.  The movement to .NET brought with it many great features
including full implementation inheritance, native support for multi
threading, optional strong typing, generics, lamba functions, linq
expressions, highly flexible and extensible object libraries, as well as
greater support for native interop with not only COM based systems but also
native API.  The syntax is very much the same as VB6, as VB 7 drew on the
basis of VB6. But there are also many differences, a bit like comparing a
modern day car to a horse and cart.


> There is .Net
> 2005 and .Net 2008

Again yet another misleading statement by Mayayana.  Really not sure why he
claims there is ".NET 2005 and .NET 2008", even after being corrected on
that numerous times.    The .NET framework is not referred to by a year. It
is .NET 1, 1.1, 2, 3, 3.5, and the new version soon to be deliver is .NET 4.
Visual Basic, and Visual Studio product **tools** are referred to by the
product release year, eg Visual Basic 2005 or Visual Studio 2008 etc.  This
is in line with Microsoft's naming practices for Word and Office etc. The
product people can buy has a year associated with it.
The Visual Basic language is referred to by it's version number, eg, 6, 7,
7.1, 8 , 9 and 10 (10 is currently in Beta)
Author
9 Jun 2009 6:53 PM
Norm Cook
Get Lost -- it was quiet/productive while you were gone.

Show quoteHide quote
"Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message
news:OeajTGb6JHA.4116@TK2MSFTNGP04.phx.gbl...
> Mayayana,
>
> Why do you continue to post that nonsense of yours in here ?  Why are you
> deliberately trying to mislead people ??
>
> "mayayana" <mayaXXy***@rcXXn.com> wrote in message
> news:u$vtKCR6JHA.936@TK2MSFTNGP06.phx.gbl...
>>>
>> ---- VB / VB.Net differences -- general explanation ---
>>
>>  If you are new to VB.Net, you need to know that there
>> are "two VBs" in use, which are entirely different beyond
>> their similar syntax. They are radically different programming
>> systems. VB is a COM-centric system for creating compiled
>> software. .Net is a Java clone that runs on top of a "virtual
>> machine", the .Net Framework. VB does not use the .Net
>> objects. VB.Net is not directly COM compatible. The only
>> thing in common between the two is a visual similarity in
>> the language syntax.
>>
>>  Likewise, there are two kinds of VB newsgroups.
>
>
> For those unfamiliar with VB, the .NET based version of VB , VB7 was
> released in 2002.  The movement to .NET brought with it many great
> features including full implementation inheritance, native support for
> multi threading, optional strong typing, generics, lamba functions, linq
> expressions, highly flexible and extensible object libraries, as well as
> greater support for native interop with not only COM based systems but
> also native API.  The syntax is very much the same as VB6, as VB 7 drew on
> the basis of VB6. But there are also many differences, a bit like
> comparing a modern day car to a horse and cart.
>
>
>> There is .Net
>> 2005 and .Net 2008
>
> Again yet another misleading statement by Mayayana.  Really not sure why
> he claims there is ".NET 2005 and .NET 2008", even after being corrected
> on that numerous times.    The .NET framework is not referred to by a
> year. It is .NET 1, 1.1, 2, 3, 3.5, and the new version soon to be deliver
> is .NET 4.
> Visual Basic, and Visual Studio product **tools** are referred to by the
> product release year, eg Visual Basic 2005 or Visual Studio 2008 etc.
> This is in line with Microsoft's naming practices for Word and Office etc.
> The product people can buy has a year associated with it.
> The Visual Basic language is referred to by it's version number, eg, 6, 7,
> 7.1, 8 , 9 and 10 (10 is currently in Beta)
>
>
>
>
>
>
>
>
Author
9 Jun 2009 3:02 PM
Nobody
"mickey" <mickmarsh***@earthlink.net> wrote in message
news:EB1C38C2-B309-461A-97EA-27568E4DCD06@microsoft.com...
> Hi All
> I'm using vb.net to record a wave file with mciSendString.

This is a VB6 and earlier group as well. VB.Net and all dotnet groups have
either "dotnet" or "vsnet" in the group name. Please use the following
group:

news://msnews.microsoft.com/microsoft.public.dotnet.languages.vb