google / google/oboe

Very high latency when more than 2 audio channels are used

Open
#942 6 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
C++
Stars
4.1k
Forks
639
Avg merge
2d 23h
Merged PRs (30d)
8

Description

Android version(s): 9/10
Android device(s): Pixel 3a, Samsung Galaxy s10
Oboe version: 1.4.2
App name used for testing:
Hello Oboe

**Short description**
On some devices the latency is very high when more than 2 channels are used.

**Steps to reproduce**
- launch the sample app Hello Oboe on a device connected to a multichannel audio interface (in my case Pioneer WeGo4 or Reloop BeatPad2).
- Latency is around 5 ms
- Select “Channel count” : 4

**Expected behavior**
- Latency is a bit higher but not too much

**Actual behavior**
- Latency is around 150 ms, sometime 200 ms.

**Any additional context**
- I observe the same behaviour in my app. With 2 channels, I can set a buffer size of 192 frames. But with 4 channels any buffer smaller than 2000 frames trigger underruns.
- Moto G5 (android 8.1) does not have that problem. The latency is the same when selecting 4 channels.

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.