aboutsummaryrefslogtreecommitdiffstats
path: root/utils/alsoft-config
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-04-26 14:03:24 -0700
committerChris Robinson <[email protected]>2022-04-26 14:03:24 -0700
commit9b330e41279884ced8b4d3ddaa63e023f4eb31e9 (patch)
tree4b1645681af10250951dbc522f897d691f519bde /utils/alsoft-config
parent4b557f15d0c6c0f0a7a3af9bb8fe8d0b0c23718e (diff)
Add an option to alsoft-config for EAX API support
Diffstat (limited to 'utils/alsoft-config')
-rw-r--r--utils/alsoft-config/mainwindow.cpp12
-rw-r--r--utils/alsoft-config/mainwindow.ui18
2 files changed, 29 insertions, 1 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index baecf525..8a179ada 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -349,6 +349,12 @@ MainWindow::MainWindow(QWidget *parent) :
#endif
+#ifndef ALSOFT_EAX
+ ui->enableEaxCheck->setChecked(Qt::Unchecked);
+ ui->enableEaxCheck->setEnabled(false);
+ ui->enableEaxCheck->setVisible(false);
+#endif
+
mPeriodSizeValidator = new QIntValidator{64, 8192, this};
ui->periodSizeEdit->setValidator(mPeriodSizeValidator);
mPeriodCountValidator = new QIntValidator{2, 16, this};
@@ -448,6 +454,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->enableDedicatedCheck, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
connect(ui->enablePitchShifterCheck, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
connect(ui->enableVocalMorpherCheck, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
+ connect(ui->enableEaxCheck, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
connect(ui->pulseAutospawnCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
connect(ui->pulseAllowMovesCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
@@ -922,6 +929,8 @@ void MainWindow::loadConfig(const QString &fname)
ui->enableDedicatedCheck->setChecked(!excludefx.contains("dedicated", Qt::CaseInsensitive));
ui->enablePitchShifterCheck->setChecked(!excludefx.contains("pshifter", Qt::CaseInsensitive));
ui->enableVocalMorpherCheck->setChecked(!excludefx.contains("vmorpher", Qt::CaseInsensitive));
+ if(ui->enableEaxCheck->isEnabled())
+ ui->enableEaxCheck->setChecked(getCheckState(settings.value("eax/enable")) != Qt::Unchecked);
ui->pulseAutospawnCheckBox->setCheckState(getCheckState(settings.value("pulse/spawn-server")));
ui->pulseAllowMovesCheckBox->setCheckState(getCheckState(settings.value("pulse/allow-moves")));
@@ -1134,6 +1143,9 @@ void MainWindow::saveConfig(const QString &fname) const
if(!ui->enableVocalMorpherCheck->isChecked())
strlist.append("vmorpher");
settings.setValue("excludefx", strlist.join(QChar{','}));
+ settings.setValue("eax/enable",
+ (!ui->enableEaxCheck->isEnabled() || ui->enableEaxCheck->isChecked())
+ ? QString{/*"true"*/} : QString{"false"});
settings.setValue("pulse/spawn-server", getCheckValue(ui->pulseAutospawnCheckBox));
settings.setValue("pulse/allow-moves", getCheckValue(ui->pulseAllowMovesCheckBox));
diff --git a/utils/alsoft-config/mainwindow.ui b/utils/alsoft-config/mainwindow.ui
index ba8f83fb..40a4fdaf 100644
--- a/utils/alsoft-config/mainwindow.ui
+++ b/utils/alsoft-config/mainwindow.ui
@@ -2110,7 +2110,7 @@ be useful for preventing those extensions from being used.</string>
<property name="geometry">
<rect>
<x>10</x>
- <y>100</y>
+ <y>60</y>
<width>511</width>
<height>241</height>
</rect>
@@ -2516,6 +2516,22 @@ added by the ALC_EXT_DEDICATED extension.</string>
</property>
</item>
</widget>
+ <widget class="QCheckBox" name="enableEaxCheck">
+ <property name="geometry">
+ <rect>
+ <x>30</x>
+ <y>320</y>
+ <width>231</width>
+ <height>21</height>
+ </rect>
+ </property>
+ <property name="toolTip">
+ <string>Enables legacy EAX API support.</string>
+ </property>
+ <property name="text">
+ <string>Enable EAX API support</string>
+ </property>
+ </widget>
</widget>
</widget>
<widget class="QPushButton" name="closeCancelButton">