• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: "Audio Queue Service Programming Guide"
  • Next by Date: Re: Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
  • Previous by thread: Re: "Audio Queue Service Programming Guide"
  • Next by thread: Re: Problems with kAudioDevicePropertyStreamConfiguration not reporting output channels
  • Index(es):
    • Date
    • Thread