Search code examples
macosaudiocore-audio

How to check if an audio device is an aggregate


Just a short question i struggle with: Is there a way to check if the AudioDeviceID i have is an aggregate device? I'm not sure how i would check this because i didn't found a corresponding selector which i could use with AudioObjectGetPropertyDataSize. Thanks in advance!


Solution

  • So I have come up with a solution myself: Get a list of subdevices by getting the property kAudioAggregateDevicePropertyActiveSubDeviceList

    If there are no subdevices it will set OSStatus to something other than noErr. If this is the case you can assume that you have an aggregate device on your hands.