Re: Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
Re: Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
- Subject: Re: Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
- From: Jeff Moore <email@hidden>
- Date: Sun, 29 Aug 2010 10:53:53 -0700
While there is nothing ostensibly wrong with the code you provided, it is also not going to be the whole story.
It would help to know how the device is configured as well as what you were expecting to get and how that compares to what you did get. For example, you might want to compare what your program is is seeing with what HALLab or AMS show.
--
Jeff Moore
Core Audio
Apple
On Aug 29, 2010, at 2:55 AM, David Preece wrote:
> 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