• 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
Getting Bit Depths from Default Audio Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting Bit Depths from Default Audio Object


  • Subject: Getting Bit Depths from Default Audio Object
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 18 Oct 2012 00:03:11 -0700

I am looking for a way to get a list of available bit depths of an audio object like what can be seen in the Apple Audio Midi Setup application. I assumed it would be similar to getting available nominal sample rates from the HAL like below but I can't seem to find a way to do it. Any help would be appreciated.

UInt32 size = sizeof(AudioValueRange);
AudioObjectPropertyAddress propertyAddress;
propertyAddress.mSelector = kAudioDevicePropertyAvailableNominalSampleRates;
propertyAddress.mElement = kAudioObjectPropertyElementMaster;
propertyAddress.mScope = kAudioObjectPropertyScopeOutput;

    

AudioObjectGetPropertyDataSize(DeviceId, &propertyAddress, 0, NULL, &size);

    

int rateCount = (size / sizeof(AudioValueRange));
AudioValueRange *range = new AudioValueRange[rateCount];

        

AudioObjectGetPropertyData(DeviceId, &propertyAddress, 0, NULL, &size, range));
 _______________________________________________
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: Getting Bit Depths from Default Audio Object
      • From: Tim Murison <email@hidden>
  • Prev by Date: AudioQueueNewOutput and the runloop
  • Next by Date: Re: Getting Bit Depths from Default Audio Object
  • Previous by thread: Re: AudioQueueNewOutput and the runloop
  • Next by thread: Re: Getting Bit Depths from Default Audio Object
  • Index(es):
    • Date
    • Thread