diff options
author | Chris Robinson <[email protected]> | 2023-03-15 02:55:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-03-15 02:55:26 -0700 |
commit | 24685b51df3199968cb9b29b88ccd3137a6ca44c (patch) | |
tree | 9580f2996963d621708742a032c2fefddf9cca13 /alc | |
parent | ff620411a75a3b27f6a449367021b07e5b700d0c (diff) |
Allow Oboe to resample when requesting a sample rate
Diffstat (limited to 'alc')
-rw-r--r-- | alc/backends/oboe.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alc/backends/oboe.cpp b/alc/backends/oboe.cpp index 32e4d4dd..68f7205b 100644 --- a/alc/backends/oboe.cpp +++ b/alc/backends/oboe.cpp @@ -81,7 +81,10 @@ bool OboePlayback::reset() builder.setCallback(this); if(mDevice->Flags.test(FrequencyRequest)) + { + builder.setSampleRateConversionQuality(oboe::SampleRateConversionQuality::High); builder.setSampleRate(static_cast<int32_t>(mDevice->Frequency)); + } if(mDevice->Flags.test(ChannelsRequest)) { /* Only use mono or stereo at user request. There's no telling what |