diff options
author | Chris Robinson <[email protected]> | 2018-03-09 18:56:24 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-09 18:56:24 -0800 |
commit | a6ddeaf5f190a3640f816a4767ffa8b10fbd1b5d (patch) | |
tree | 2bb9afdfdf76e7efd03cc883bcc1fa1e6caf71c7 /utils/alsoft-config/mainwindow.cpp | |
parent | 30821e978b69fa017cbcd76e5ff25c62f16b1d2a (diff) |
Rename the mmdevapi backend to wasapi
Diffstat (limited to 'utils/alsoft-config/mainwindow.cpp')
-rw-r--r-- | utils/alsoft-config/mainwindow.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index c5efbe38..a3b0c559 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -44,8 +44,8 @@ static const struct { #ifdef HAVE_QSA { "qsa", "QSA" }, #endif -#ifdef HAVE_MMDEVAPI - { "mmdevapi", "MMDevAPI" }, +#ifdef HAVE_WASAPI + { "wasapi", "WASAPI" }, #endif #ifdef HAVE_DSOUND { "dsound", "DirectSound" }, @@ -774,7 +774,16 @@ void MainWindow::loadConfig(const QString &fname) if(drivers.size() == 1) drivers = drivers[0].split(QChar(',')); for(QStringList::iterator iter = drivers.begin();iter != drivers.end();iter++) + { *iter = iter->trimmed(); + /* Convert "mmdevapi" references to "wasapi" for backwards + * compatibility. + */ + if(*iter == "-mmdevapi") + *iter = "-wasapi"; + else if(*iter == "mmdevapi") + *iter = "wasapi"; + } bool lastWasEmpty = false; foreach(const QString &backend, drivers) |