google / google/oboe

Redmi Note 8 Ginkgo (and other Redmi devices) - microphone not recording when an application is already recording

Open
#1,427 16 comments 0 reactions 2 assignees Claimed by @flamme View on GitHub
bug bug_hotword P1 Qualcomm
Dominant language
C++
Stars
4.1k
Forks
639
Avg merge
2d 23h
Merged PRs (30d)
8

Description

Android version(s):
11

Android device(s):
Redmi Note 8 gingko. Some customer reports from other Xiaomi devices (I can dig deeper if needed).

Oboe version:
1.6.1

App name used for testing:
Oboe Tester, and pre-installed Recorder app are used for testing. The issue reproduces in Smule.

**Short description**
An application can spin up an Oboe input audio stream, and be unable to record. This requires that some other application first begins a recording.

**Steps to reproduce**
1. Begin a recording in the Recorder app
2. Background the Recorder app
3. Open Oboe Tester
4. Select Record and Play
5. Press Record
6. Press Stop
7. Press Play
8. optionally go back to your recorder app and stop its recording

**Expected behavior**
1. Audio recording is paused in the Recorder app when Oboe Tester starts recording
2. Oboe Tester is able to gain control of the audio session

This expected behavior is observed on the Pixel 3. Android 11.

**Actual behavior**
1. The Recorder app continues recording when Oboe Tester is in the Recording phase.
2. Oboe Tester does not record any audio

**Device**

ro.product.brand = xiaomi
ro.product.manufacturer = Xiaomi
ro.product.model = Redmi Note 8
ro.product.device = ginkgo
ro.product.cpu.abi = arm64-v8a
ro.build.description = ginkgo-user 11 RKQ1.201004.002 V12.0.2.0.RCOMIXM release-keys
ro.hardware = qcom
ro.hardware.chipname =
ro.arch =
| grep aaudio =

**Any additional context**

Redmi Example
https://soundcloud.com/mark-gill-623185005/redmi-multiple-recordings-bug/s-APwxKq20QeF?si=c8f46b7f1d294dbda3ac762c1b157150

Pixel Example
https://soundcloud.com/mark-gill-623185005/pixel-3-multiple-recordings-example/s-w4Uuwv8FrMe?si=c8f46b7f1d294dbda3ac762c1b157150

In these examples I narrate what I am doing on the phone during the process to illustrate the problem. The recordings are made with the Recorder app.

Notice the pixel example includes a drop out in recording. This is when Oboe Tester is recording.

This issue does not seem to be AAudio or OpenSL specific. I can provide more examples if necessary.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.