aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-03-15 02:55:26 -0700
committerChris Robinson <[email protected]>2023-03-15 02:55:26 -0700
commit24685b51df3199968cb9b29b88ccd3137a6ca44c (patch)
tree9580f2996963d621708742a032c2fefddf9cca13 /alc
parentff620411a75a3b27f6a449367021b07e5b700d0c (diff)
Allow Oboe to resample when requesting a sample rate
Diffstat (limited to 'alc')
-rw-r--r--alc/backends/oboe.cpp3
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