Skip to content

onErrorBeforeClose and onErrorAfterClose are not called when a headset plugged in and out #893

@taemincho

Description

@taemincho

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

  1. Launch LiveEffect
  2. Select Auto select for both Recording device and Playback device
  3. Select AAudio for APIs
  4. Press Start button
  5. Plug in a headset (w/ microphone)
  6. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions