aboutsummaryrefslogtreecommitdiffstats
path: root/utils/alsoft-config/mainwindow.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-02-19 14:36:06 -0800
committerChris Robinson <[email protected]>2017-02-19 16:45:17 -0800
commitd45dd9c668b2f4331492600d8ff99dc20c068664 (patch)
tree346dc9091703a7f3c5c76b73e4dc10874b0dc814 /utils/alsoft-config/mainwindow.cpp
parent247f56249ade334f8f7ef9eda9c380af0278562f (diff)
Remove the sinc8 resampler option
Perf shows less than 1 percent CPU difference from the higher quality bsinc resampler, but uses almost twice as much memory (a 128KB lookup table).
Diffstat (limited to 'utils/alsoft-config/mainwindow.cpp')
-rw-r--r--utils/alsoft-config/mainwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index 4ae89f09..89e4c30a 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -101,7 +101,6 @@ static const struct NameValuePair {
{ "Linear", "linear" },
{ "Default (Linear)", "" },
{ "4-Point Sinc", "sinc4" },
- { "8-Point Sinc", "sinc8" },
{ "Band-limited Sinc", "bsinc" },
{ "", "" }
@@ -598,9 +597,10 @@ void MainWindow::loadConfig(const QString &fname)
QString resampler = settings.value("resampler").toString().trimmed();
ui->resamplerSlider->setValue(0);
- /* The "cubic" resampler is no longer supported. It's been replaced by
- * "sinc4". */
- if(resampler == "cubic")
+ /* The "cubic" and "sinc8" resamplers are no longer supported. Use "sinc4"
+ * as a fallback.
+ */
+ if(resampler == "cubic" || resampler == "sinc8")
resampler = "sinc4";
for(int i = 0;resamplerList[i].name[0];i++)
{