I believe that a device is notified every time a new client connects. By default, all available channels are enabled, but smart applications can set per-channel flags to save resources on unused channels. In my experience, many applications fail to turn off unused channels, which means you won't really know. Hopefully, the better applications are setting these flags so that you can adjust.
Caveat: The above is all strictly from memory - I haven't actually taken the time to confirm the various API. Brian On Jun 22, 2016, at 6:45 AM, AI Developer <[email protected]> wrote: > For a multi-channel device, is there a way to determine the maximum number > channels that have been opened by clients? > > Something akin to kAudioDevicePropertyDeviceIsRunningSomewhere. > > We have an audio device driver, where we want to apply some processing which > can change based on whether only 2 channels are being used for playback or 6 > (5.1) channels are being used. > > Currently, the driver simply gets a mix of 6 channels, so we have no way of > knowing if clients are using only 2 of those 6 channels. > > Thanks. > Devendra. _______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
