DIGI001 zero channels!
DIGI001 zero channels!
- Subject: DIGI001 zero channels!
- From: Ethan Funk <email@hidden>
- Date: Sun, 6 Jun 2004 15:13:37 -0700
I use the following code to get a count of the Input and Output
channels available on a audio device. This code works fine for all the
devices I have tested so far except for Digidesign's DIGI001 interface.
I get a channel count of ZERO in and out. Even when the same program
is connected and playing audio through the device, I still get zero
channels counted. Is this a bug with the Digidesign driver or am I
doing something wrong in my code?
Ethan Funk
nOUTChan = 0;
theSize = sizeof(AudioBufferList);
OSerr = AudioDeviceGetProperty(
theDevice, 0, false,
kAudioDevicePropertyStreamConfiguration,
&theSize, &chanList);
if (!OSerr){
for (j=0; j < chanList.mNumberBuffers; j++)
nOUTChan = nOUTChan +
chanList.mBuffers[j].mNumberChannels;
}
nINChan = 0;
theSize = sizeof(AudioBufferList);
OSerr = AudioDeviceGetProperty(
theDevice, 0, true,
kAudioDevicePropertyStreamConfiguration,
&theSize, &chanList);
if (!OSerr){
for (j=0; j < chanList.mNumberBuffers; j++)
nINChan = nINChan +
chanList.mBuffers[j].mNumberChannels;
}
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.