Setting the volumes for a headphone data source
Setting the volumes for a headphone data source
- Subject: Setting the volumes for a headphone data source
- From: Tim Hewett <email@hidden>
- Date: Wed, 13 Mar 2013 01:15:43 +0000
Is there a way to set the volumes for a headphone data source (and even discover that such a data source exists programmatically) for the headphone port on a Mac's built-in audio device, when the headphones are not connected?
I have a MacBook Pro (early 2011) which only lists one source at a time, be it speaker, headphones or "digital out". When the headphones are connected, the single data source changes and the previous headphone volume settings are recalled and applied separately to the settings for the other data sources. My app sets the volumes to 1.0 (maximum) but if the user disconnects the headphones it needs to restore the settings to what they were previously so that they will be reapplied next time the 'phones are used.
I can't find an API to do this. Any help would be much appreciated.
Regards,
Tim.
_______________________________________________
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