RE: Setting Sample Rates
RE: Setting Sample Rates
- Subject: RE: Setting Sample Rates
- From: Jim Dolan <email@hidden>
- Date: Tue, 15 Jan 2002 15:16:06 -0500
Hi Jeff -
I understand that streams only go in one direction and that I get all the
data for all of the streams during each IOProc. Let me re-phrase my
question using just an input device example.
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.
I suppose that if the data sources are implimented, I could cross-check the
channel with the source, but if data sources are not implimented - is there
still a way...
Thanks Jimmy D.
-----Original Message-----