Re: Determining the maximum number of channels in use for a device
Re: Determining the maximum number of channels in use for a device
- Subject: Re: Determining the maximum number of channels in use for a device
- From: Brian Willoughby <email@hidden>
- Date: Wed, 22 Jun 2016 20:18:49 -0700
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@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden