Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
- Subject: Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
- From: David Preece <email@hidden>
- Date: Sun, 29 Aug 2010 21:55:34 +1200
Hi,
I've been using AudioDeviceGetProperty along with the property kAudioDevicePropertyStreamConfiguration and isInput==false to find the number of output channels - specifically that if they are greater than two (the sum of the number of buffers contained in the return AudioBufferList) then the device is capable of outputting stereo.
However, I have some clients with relatively high end audio gear (specifically an Echo AudioFire 4) that don't appear to list their output channels this way. Is there something I'm missing with regards to detecting output channels? Actual code is below.
Thanks,
Dave
//get the devices' output buffer list
AudioBufferList buffer_list;
malloc_size=sizeof(AudioBufferList);
err=AudioDeviceGetProperty(*curr_deviceid,0,false,kAudioDevicePropertyStreamConfiguration,&malloc_size,&buffer_list);
if (buffer_list.mNumberBuffers==0) {
[str appendString:@"..reports no output buffers\n"];
curr_deviceid++;
continue;
}
for (int i=0;i<buffer_list.mNumberBuffers;i++) {
[str appendFormat:@"..buffer %d is %d channels with %d data bytes\n",i,buffer_list.mBuffers[i].mNumberChannels,buffer_list.mBuffers[i].mDataByteSize];
} _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden