google / google/oboe

How to Set Sample Rate to 48000 in Oboe While Ensuring Low Latency?

Open
#2,141 2 comments 0 reactions 1 assignee Assigned to @flamme View on GitHub
question
Dominant language
C++
Stars
4.1k
Forks
639
Avg merge
2d 23h
Merged PRs (30d)
8

Description

I am using Oboe for voice recording while simultaneously playing an MP3 file. The MP3 file is mixed with the inputData from Oboe to play music. The sample rate for MP3 playback is determined based on the device's supported sample rate, not the headphones. My device supports a maximum sample rate of 48000, but the headphones connected to the device can support up to 96000. Currently, Oboe prioritizes the highest sample rate available, especially in low-latency mode. I would like to configure the sample rate to 48000 to ensure compatibility and consistency in audio processing, regardless of the headphones' capabilities.

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.