Recording Channels

4 Messages Forum Options Options
Permalink
Martyn Shaw-2
Recording Channels
Reply Threaded More
Print post
Permalink
Hi

I don't have a device with more than 2 recording channels, but I'm
offered more in prefs -> Audio I/O ->Recording -> Channels.

Is the following a good idea?

diff -u -r1.55 AudioIOPrefs.cpp
--- AudioIOPrefs.cpp 23 May 2008 16:01:24 -0000 1.55
+++ AudioIOPrefs.cpp 10 Jun 2008 23:24:08 -0000
@@ -76,6 +76,7 @@
     int nDevices = Pa_CountDevices();
  #endif

+   int numChannels = 0; // find max no. of record channels available
     for(j=0; j<nDevices; j++) {
        const PaDeviceInfo* info = Pa_GetDeviceInfo(j);
        Name = DeviceName(info);
@@ -87,11 +88,12 @@
        if (info->maxInputChannels > 0) {
           mmRecordNames.Add( Name );
           mmRecordLabels.Add( Label );
+         if (info->maxInputChannels > numChannels)
+            numChannels = info->maxInputChannels;
        }
     }

     // Channel counts, mono, stereo etc...
-   const int numChannels = 16;
     for(int c=0; c<numChannels; c++)
     {
        mmChannelNames.Add(  wxString::Format(wxT("%d"), c+1));

Not perfect, I know, but better than we have?
Martyn

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Audacity-devel mailing list
Audacity-devel@...
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Martyn Shaw-2
Re: Recording Channels
Reply Threaded More
Print post
Permalink
No response so I committed this.  Now you don't get offered 16
channels to record if your hardware doesn't support it.  Hope that's OK.

Martyn

Martyn Shaw wrote:

> Hi
>
> I don't have a device with more than 2 recording channels, but I'm
> offered more in prefs -> Audio I/O ->Recording -> Channels.
>
> Is the following a good idea?
>
> diff -u -r1.55 AudioIOPrefs.cpp
> --- AudioIOPrefs.cpp    23 May 2008 16:01:24 -0000    1.55
> +++ AudioIOPrefs.cpp    10 Jun 2008 23:24:08 -0000
> @@ -76,6 +76,7 @@
>     int nDevices = Pa_CountDevices();
>  #endif
>
> +   int numChannels = 0; // find max no. of record channels available
>     for(j=0; j<nDevices; j++) {
>        const PaDeviceInfo* info = Pa_GetDeviceInfo(j);
>        Name = DeviceName(info);
> @@ -87,11 +88,12 @@
>        if (info->maxInputChannels > 0) {
>           mmRecordNames.Add( Name );
>           mmRecordLabels.Add( Label );
> +         if (info->maxInputChannels > numChannels)
> +            numChannels = info->maxInputChannels;
>        }
>     }
>
>     // Channel counts, mono, stereo etc...
> -   const int numChannels = 16;
>     for(int c=0; c<numChannels; c++)
>     {
>        mmChannelNames.Add(  wxString::Format(wxT("%d"), c+1));
>
> Not perfect, I know, but better than we have?
> Martyn
>

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Audacity-devel mailing list
Audacity-devel@...
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Vaughan Johnson
Re: Recording Channels
Reply Threaded More
Print post
Permalink
I think it's right, Martyn, but can somebody with an ASIO-capable build
and a multi-channel ASIO device check that it works for >2 simultaneous
channels?

- Vaughan


Martyn Shaw wrote:

> No response so I committed this.  Now you don't get offered 16
> channels to record if your hardware doesn't support it.  Hope that's OK.
>
> Martyn
>
> Martyn Shaw wrote:
>  
>> Hi
>>
>> I don't have a device with more than 2 recording channels, but I'm
>> offered more in prefs -> Audio I/O ->Recording -> Channels.
>>
>> Is the following a good idea?
>>
>> diff -u -r1.55 AudioIOPrefs.cpp
>> --- AudioIOPrefs.cpp    23 May 2008 16:01:24 -0000    1.55
>> +++ AudioIOPrefs.cpp    10 Jun 2008 23:24:08 -0000
>> @@ -76,6 +76,7 @@
>>     int nDevices = Pa_CountDevices();
>>  #endif
>>
>> +   int numChannels = 0; // find max no. of record channels available
>>     for(j=0; j<nDevices; j++) {
>>        const PaDeviceInfo* info = Pa_GetDeviceInfo(j);
>>        Name = DeviceName(info);
>> @@ -87,11 +88,12 @@
>>        if (info->maxInputChannels > 0) {
>>           mmRecordNames.Add( Name );
>>           mmRecordLabels.Add( Label );
>> +         if (info->maxInputChannels > numChannels)
>> +            numChannels = info->maxInputChannels;
>>        }
>>     }
>>
>>     // Channel counts, mono, stereo etc...
>> -   const int numChannels = 16;
>>     for(int c=0; c<numChannels; c++)
>>     {
>>        mmChannelNames.Add(  wxString::Format(wxT("%d"), c+1));
>>
>> Not perfect, I know, but better than we have?
>> Martyn
>>
>>    
>

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Audacity-devel mailing list
Audacity-devel@...
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Gale Andrews
Re: Recording Channels
Reply Threaded More
Print post
Permalink

| From Vaughan Johnson <vaughan@...>
| Wed, 02 Jul 2008 20:36:09 -0700
| Subject: [Audacity-devel] Recording Channels
> I think it's right, Martyn, but can somebody with an ASIO-capable build
> and a multi-channel ASIO device check that it works for >2 simultaneous
> channels?

I asked Andy Latham on the Forum to check 1.3.6a3. He can actually
record up to 8 channels at once on Windows XP using Audacity 1.2.6 and
1.3.4 out of the box, using an M-Audio Delta 1010LT Sound Card -
providing he uses old drivers from August 2007. The latest ones
do not allow recording of the speaker output (it's a common theme
now that this feature is being progressively withdrawn from drivers),
and only allow recording two channels at once.

Anyway, with the older drivers, Andy can in 1.2.6/1.3.4 select each
stereo pair of inputs (1+2, 3+4 ...) individually and record in stereo,
or he can select "Multi" and record up to 8 at once. With 1.3.6a he says
he can no longer record more than 2 channels using any of the sources.
He still has access to the 'Multi' source, but Audacity now only presents
him with a maximum of two channels for that source.

So that isn't exactly what Vaughan asked to test, but gives us a clue
this may not be correct yet.



Gale



> Martyn Shaw wrote:
> > No response so I committed this.  Now you don't get offered 16
> > channels to record if your hardware doesn't support it.  Hope that's OK.
> >
> > Martyn
> >
> > Martyn Shaw wrote:
> >  
> >> Hi
> >>
> >> I don't have a device with more than 2 recording channels, but I'm
> >> offered more in prefs -> Audio I/O ->Recording -> Channels.
> >>
> >> Is the following a good idea?
> >>
> >> diff -u -r1.55 AudioIOPrefs.cpp
> >> --- AudioIOPrefs.cpp    23 May 2008 16:01:24 -0000    1.55
> >> +++ AudioIOPrefs.cpp    10 Jun 2008 23:24:08 -0000
> >> @@ -76,6 +76,7 @@
> >>     int nDevices = Pa_CountDevices();
> >>  #endif
> >>
> >> +   int numChannels = 0; // find max no. of record channels available
> >>     for(j=0; j<nDevices; j++) {
> >>        const PaDeviceInfo* info = Pa_GetDeviceInfo(j);
> >>        Name = DeviceName(info);
> >> @@ -87,11 +88,12 @@
> >>        if (info->maxInputChannels > 0) {
> >>           mmRecordNames.Add( Name );
> >>           mmRecordLabels.Add( Label );
> >> +         if (info->maxInputChannels > numChannels)
> >> +            numChannels = info->maxInputChannels;
> >>        }
> >>     }
> >>
> >>     // Channel counts, mono, stereo etc...
> >> -   const int numChannels = 16;
> >>     for(int c=0; c<numChannels; c++)
> >>     {
> >>        mmChannelNames.Add(  wxString::Format(wxT("%d"), c+1));
> >>

 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Audacity-devel mailing list
Audacity-devel@...
https://lists.sourceforge.net/lists/listinfo/audacity-devel