JUCE
JUCE copied to clipboard
[Bug]: iOS iPad low playback sample rate when Bluetooth input device is enabled
Detailed steps on how to reproduce the bug
- Create an iOS audio app with microphone input, audio output and background audio enabled.
- Pair Bluetooth headphones with the iPad and launch the app.
- 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
Same here