Skip to content

48khz on main output device vs 44.1khz on earphones #1966

Answered by philburk
davideberra asked this question in Q&A
Discussion options

You must be logged in to vote

The PROPERTY_OUTPUT_SAMPLE_RATE
is not reliable. The actual default sample rate may be different on different peripheral or different stream settings.

Also oboe::DefaultStreamValues::SampleRate only affects the default rate for OpenSL ES, not AAudio.

If you need a particular sample rate to match the rate of your content then you need to specify it directly:

builder.setSampleRate(contentSampleRate);

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by philburk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants