Re: Setting Sample Rates
Re: Setting Sample Rates
- Subject: Re: Setting Sample Rates
- From: Jeff Moore <email@hidden>
- Date: Tue, 15 Jan 2002 14:33:12 -0800
on 1/15/02 12:16 PM, Jim Dolan <email@hidden> wrote:
>
Suppose that we have an input device with 2 streams, each with two channels.
>
Lets say that the driver configuration says that stream1 is two channels of
>
analog input and stream2 is 2 channels of digital input. My application is
>
not supposed to look like a mixer. I want to supply a mutually exclusive
>
list of input sources and provide the number of input channels accordingly.
>
In this case, I do not want to display 4 input channels to the user because
>
they are not the same type of input. If the user selects analog input, then
>
I want to display chan 1 & 2 as inputs. If they select digital input, I
>
still want the display channels 1 & 2, but do the mapping to the proper
>
stream behind the scenes. Depending on the selection, I would like to take
>
samples from one stream and ignore samples passed in the other.
>
>
If however the two streams listed above, actually represented 4 channels of
>
analog line input, I would want to display 4 channels to my user, and I
>
would want to take samples from both streams during IO. If you follow me so
>
far, then the question becomes this. How do I tell if the streams are
>
configured one way or the other.
OK, I think I understand what you're talking about now.
As I said, the information you need to make such decisions isn't currently
available. This is what I meant when I wrote about the need for properties
that identify the transport and kind of the streams. If such support
existed, it would meet your needs, presuming the driver was able to provide
the information you are looking for.
Note that even if there was support for these kind of properties, you will
still need to have a fall back plan since quite a few devices won't be able
to provide this kind of information.
--
Jeff Moore
Core Audio
Apple