diff options
author | Chris Robinson <[email protected]> | 2023-01-27 02:39:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-27 02:39:42 -0800 |
commit | dc61e7c59d24fb4422c3ea939eeb32ef2f4038c4 (patch) | |
tree | 2415972bdadbaaf0dc530fa7dc3fe53cfecb3271 | |
parent | 3f6e0e3d9666c7fc0f7599aa35535ad0f843a88a (diff) |
Change the default resampler to cubic
This has notably better quality than linear, while still being faster than
bsinc.
-rw-r--r-- | alsoftrc.sample | 2 | ||||
-rw-r--r-- | core/voice.cpp | 2 | ||||
-rw-r--r-- | utils/alsoft-config/mainwindow.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/alsoftrc.sample b/alsoftrc.sample index cdff5db5..d894791e 100644 --- a/alsoftrc.sample +++ b/alsoftrc.sample @@ -188,7 +188,7 @@ # between 24 and 48 points, with anti-aliasing) # fast_bsinc24 - same as bsinc24, except without interpolation between down- # sampling scales -#resampler = linear +#resampler = cubic ## rt-prio: (global) # Sets the real-time priority value for the mixing thread. Not all drivers may diff --git a/core/voice.cpp b/core/voice.cpp index 5fa9f677..972628a5 100644 --- a/core/voice.cpp +++ b/core/voice.cpp @@ -55,7 +55,7 @@ static_assert(!(sizeof(DeviceBase::MixerBufferLine)&15), "DeviceBase::MixerBufferLine must be a multiple of 16 bytes"); static_assert(!(MaxResamplerEdge&3), "MaxResamplerEdge is not a multiple of 4"); -Resampler ResamplerDefault{Resampler::Linear}; +Resampler ResamplerDefault{Resampler::Cubic}; namespace { diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index 39b773af..bee7022f 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -107,8 +107,8 @@ const struct NameValuePair { }, resamplerList[] = { { "Point", "point" }, { "Linear", "linear" }, - { "Default (Linear)", "" }, { "Cubic Spline", "cubic" }, + { "Default (Cubic Spline)", "" }, { "11th order Sinc (fast)", "fast_bsinc12" }, { "11th order Sinc", "bsinc12" }, { "23rd order Sinc (fast)", "fast_bsinc24" }, |