FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Huawei P30: AAudio a sound is corrupted and OpenSL has a high latency · Issue #952 · google/oboe · GitHub

Repository navigation

Huawei P30: AAudio a sound is corrupted and OpenSL has a high latency #952

Description

Android version(s): 10 (10.1.0.123 (C431E22R2P5))
Android device(s): Huawei P30 (ELE-L29)
Oboe version: 1.4.2
App name used for testing: Similar to LiveEffect

Short description
Steps to reproduce
In voice related application, I'm working on, I'm having some issues on Huawei P30 related to how AAudio and OpenSL behave. On other tested phones of different vendors it works without any issues.

The application has almost the same setup as LiveEffect. There are 2 streams: one for input and another for output, both a requested in Exclusive, Low-latency, I16 mode. Input stream has 1 channel, Output stream has 2 channels. Callback is attached to the output stream. Sample rate and frames per callback are set using this method: https://github.com/google/oboe/blob/master/docs/GettingStarted.md#obtaining-optimal-latency

After requesting streams I'm getting such parameters:

========
AAudio:

Output:

  • Frames per burst: 240
  • Buffer size in frames: 480
  • Channels: 2
  • Sample rate: 48000
  • Sharing mode: Shared
  • Performance mode: Low-latency

Input:

  • Frames per burst: 240
  • Buffer size in frames: 3840
  • Channels: 1
  • Sample rate: 48000
  • Sharing mode: Shared
  • Performance mode: Low-latency

========
OpenSL:

Output:

  • Frames per burst: 960
  • Buffer size in frames: 1920
  • Channels: 2
  • Sample rate: 48000
  • Sharing mode: Shared
  • Performance mode: None

Input:

  • Frames per burst: 960
  • Buffer size in frames: 15360
  • Channels: 1
  • Sample rate: 48000
  • Sharing mode: Shared
  • Performance mode: None

========

Expected behavior
On Huawei P30: With AAudio the sound is not corrupted. With OpenSL the latency is low.

Actual behavior
On Huawei P30: With AAudio the sound is corrupted. With OpenSL the latency is high.

Looking forward to your feedback.

Thank you very much.

P.S. Probably these issues are related:
#525
#386

Best,
Vladymyr.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Huaweispecific to Huawei devicesbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL