JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: iOS iPad low playback sample rate when Bluetooth input device is enabled

Open izzyreal opened this issue 2 years ago • 1 comments

Detailed steps on how to reproduce the bug

  1. Create an iOS audio app with microphone input, audio output and background audio enabled.
  2. Pair Bluetooth headphones with the iPad and launch the app.
  3. Observe that the playback sample rate is 16000Hz.

If we comment out the unintuitively named AVAudioSessionCategoryOptionAllowBluetooth in juce_iOS_Audio.cpp the Bluetooth input is ignored and its output device can be used at normal sample rates. So, to emphasize, omitting this flag does not disable Bluetooth output.

What is the expected behaviour?

A way to tell iOS_Audio to omit AVAudioSessionCategoryOptionAllowBluetooth.

Operating systems

iOS

What versions of the operating systems?

iPadOS 15.7

Architectures

ARM, 64-bit

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • [X] I agree to follow the Code of Conduct

izzyreal avatar Oct 09 '22 08:10 izzyreal

Same here

endercabuker avatar Jul 05 '23 12:07 endercabuker