-
Notifications
You must be signed in to change notification settings - Fork 617
Description
Android version(s): 10
Android device(s): Samsung S10
Oboe version: 1.4 - stable (1.4.2)
App name used for testing: LiveEffect
(Please try to reproduce the issue using the OboeTester or an Oboe sample.)
Short description
(Please only report one bug per Issue. Do not combine multiple bugs.)
onErrorBeforeClose and onErrorAfterClose are not called when a headset plugged in and out
Steps to reproduce
- Launch LiveEffect
- Select Auto select for both Recording device and Playback device
- Select AAudio for APIs
- Press
Startbutton - Plug in a headset (w/ microphone)
- Plug out the headset
Expected behavior
When plugging in a headset onErrorBeforeClose and onErrorBeforeClose are called, so that should be able to switch Recording and Playback devices to headset speaker and mic.
Actual behavior
onErrorBeforeClose and onErrorBeforeClose are not called and the phone mic and speaker are used for audio recording and playback
Any additional context
If select OpenSL ES for APIs, onErrorBeforeClose and onErrorBeforeClose are also not called. However, recording and playback devices are switched to the headset speaker and mic as expected.
If applicable, please attach a recording of the sound.