From 848a4a0fccd61e69bf2b8456c239f656c5ca9fd0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 28 Sep 2015 12:59:52 -0700 Subject: Auto-replace the "cubic" resampler with "sinc4" --- utils/alsoft-config/mainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index a1c2fbb3..310d9260 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -63,7 +63,7 @@ static const struct { { "Default", "" }, { "Point (low quality, fast)", "point" }, { "Linear (basic quality, fast)", "linear" }, - { "Sinc/Lanczos (good quality)", "sinc4" }, + { "Sinc-Lanczos (good quality)", "sinc4" }, { "", "" } }, stereoModeList[] = { @@ -293,6 +293,11 @@ void MainWindow::loadConfig(const QString &fname) ui->resamplerComboBox->setCurrentIndex(0); if(resampler.isEmpty() == false) { + /* The "cubic" resampler is no longer supported. It's been replaced by + * "sinc4" (4-point Sinc-Lanczos). */ + if(resampler == "cubic") + resampler = "sinc4"; + for(int i = 0;resamplerList[i].name[i];i++) { if(resampler == resamplerList[i].value) -- cgit v1.2.3