Is there a way to let the user select which device they use for audio output?
In the docs I have found that you can select which route to use by setting kAudioSessionProperty_OverrideAudioRoute to either:
- kAudioSessionOverrideAudioRoute_None, or
- kAudioSessionOverrideAudioRoute_Speaker
However I would like to let the user to use their Bluetooth headset to hear the audio.
If you look in Apple's own 'Voice memos' app, in the playback menu there is a button in the top left which lets you choose which audio device to use. When a Bluetooth headset is attached, pressing the button brings up a menu which makes it possible to select between:
- Bluetooth headset
- iPhone
- Speaker
Is there a way to achieve this functionality using standard Apple APIs in my own app?