diff options
author | Chris Robinson <[email protected]> | 2015-09-28 12:59:52 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-09-28 12:59:52 -0700 |
commit | 848a4a0fccd61e69bf2b8456c239f656c5ca9fd0 (patch) | |
tree | 6e962b73b8c208a3ad9541d4c05e8a984cf403b4 /utils/alsoft-config | |
parent | 9992c4da997a1364d8f15ab26fb156e18a01f242 (diff) |
Auto-replace the "cubic" resampler with "sinc4"
Diffstat (limited to 'utils/alsoft-config')
-rw-r--r-- | utils/alsoft-config/mainwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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) |