Re: how do i enable the volume balance slider for each stereo channel?
Re: how do i enable the volume balance slider for each stereo channel?
- Subject: Re: how do i enable the volume balance slider for each stereo channel?
- From: brianw via Coreaudio-api <email@hidden>
- Date: Fri, 06 Dec 2024 18:20:38 -0800
- Arc-authentication-results: i=1; rspamd-fc7fd4597-h2mvc; auth=pass smtp.auth=dreamhost smtp.mailfrom=email@hidden
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1733538120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9ITJwx66Dxx5mqrmWiJc4OYidXBjCjxz3tVXNxxsTyg=; b=tURksPKMqhsQ2fgRVchZZFVHjj4VZhZOv/ZamMQ9xJzu++kERoCrOtcs8U2P/bE2f62WPL 4fStJjD//qCRTntrcjlbFqVkp35oklojJPkwJLEMDKAfIReCgnBjD6qyogiiMR0wTJGp1Z emr73t5egda9TK8lsgnVxMtcCGN2jH2GS9kOCvU09RFZQxR8sgkCxgs2u91PnOoimkMmiq d3BGQp+CS8L34KflgGClJronalc6KP7Zddc7QYn5peLntDpt47vNa5OBENZ5HAIh20UHH0 ndEYdKVBPt3u5ryaFikqzzOnfG2R85SrEFR5aRCkwrMbkqyX/QHZRMQSycDnSQ==
- Arc-seal: i=1; s=arc-2022; d=mailchannels.net; t=1733538120; a=rsa-sha256; cv=none; b=N5MPz0yEiAaCVdooZF75/miRdFeX1jpdTiKc10hNK603xpuWqEVL4aAZ8FkE7WNr7U21l7 P8gJtERvxnHP8ZJmRUIbooU4ThuJbxxReW1w7irvebvgODAwgryWANxGrkL1QhtiU1EiW/ FV7YvCL0o27K4H7qeGzGomZsQUhfJuF84TWExVmMQWs1Tr+bI/Lx2gRcCjsUNkX/Zc4u/n SDURsgUe7T/TEyQFrrsDDAEtZKBWAEP5vVrRnFFI7WqOoo7wGhVqb/4Ra2jSWu52RGiL8s 9E1UHAdnZxBeTKbnRX14gYWega9dsfv3zQSoovIHSujS4VgoRokMOzG7WjIkkw==
I suggest looking at the arrangement of streams, channels, and properties for
another audio interface where the balance slider appears (and is not grayed
out).
For general CoreAudio drivers, the channels can be grouped into streams of 1,
2, or more channels. I'd be curious whether balance only appears on streams
with two channels, or if it appears in more configurations.
In your case, it seems you have a USB audio device, so the mapping from USB to
CoreAudio is determined by the USB Descriptors. Again, looking at some other
audio interface that support balance should tell you what you need.
Of course, once you find out the configuration that works for other interfaces,
it may not necessarily be appropriate for your device.
I've seen multichannel interfaces - eight to ten channels - where every channel
has its own stream (they're all mono streams) or where the channels were
grouped into an eight-channel stream (for the main outputs) plus a two-channel
stream (for the headphones). I cannot recall whether balance appeared for any
of these.
Besides the streams and channels, looks at the properties for those aspects,
and the values returned for those properties. You might need to use something
like AUHAL or write your own tool to query everything on an interface that
supports balance. That's one way to find out what you need. Of course, with a
USB device, you'll need to know which Descriptors correspond to the CoreAudio
properties.
Brian Willoughby
On Dec 6, 2024, at 5:42 PM, Gagan Sidhu wrote:
> i thought this would have been taken care of by the API, but i guess i would
> need to tell it the pins/gpio/whatever about which one is let and right.
>
> does anyone have good examples i could work off to add this feature? it
> doesn’t seem that apple’s documentation or USB audio driver shows how this is
> done.
>
> https://github.com/i3roly/C-Media/issues/3
>
> Thanks,
> Gagan
_______________________________________________
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