I'm trying to detect the audio left/right balance programmatically, and there doesn't seem to be an api for getting the value of this setting. I was able to find the UIAccessibilityIsMonoAudioEnabled()
method for detecting if the user has enabled mono audio, but I can't find an equivalent function for the audio balance.
Anyone know how I can do this?
P.S. Go to Settings->General->Accessibility and then scroll down to "Hearing" to set these options
Adjust Left and Right Audio Balance of Sound Playback (Output) Devices in Settings 1 Open Settings, and click/tap on the System icon. 2 Click/tap on Sound on the left side, select the output device you want to adjust in the Choose your output device drop menu, and click/tap on the Device properties link under it. (see screenshot below)
Find your audio output devices in the list and double-click on it. In the device properties dialog, switch to the Levels tab. There, click on the Balance button. In the Balance dialog, adjust the Left and Right audio channel balance level, and click OK. How do you balance left and right audio?
I have hearing loss in my right ear. If I turn up the volume to hear in my right ear, the left ear is dangerously loud. Apple has offered a left/right audio balance for several iOS releases, but it doesn’t make it obvious where to find it. It’s not in Sounds, but in Accessibility ( Settings > General > Accessibility ).
All iOS devices can adjust left/right balance. iOS hides its very useful left/right audio balance control in Accessibility settings. But you’ll also see settings for working with Bluetooth-connected and other hearing aids, for mono audio, and to remove phone noise cancellation, which can affect the quality of calls negatively in some cases.
I'm pretty sure that this is not an acceptable answer, but...
After browsing through the various API's I think my conclusion is: Not possible.
There is no direct API that reads that specific setting. There is also no way of reading the value directly - as it is stored outside of your application sandbox.
My best suggestion is to file a feature request at Apples Bug Reporter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With