aboutsummaryrefslogtreecommitdiffstats
path: root/utils/alsoft-config
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-09 21:30:49 -0800
committerChris Robinson <[email protected]>2023-01-09 21:30:49 -0800
commit6bd541d02e664505e3aacc643a46ecfb6919612f (patch)
tree709b98dfaba163e97dfdf170b4d4d18a667228d5 /utils/alsoft-config
parent89c09f66acc4562ec0be1bf6e51c64209799ab29 (diff)
Update alsoft-config with the new settings
Diffstat (limited to 'utils/alsoft-config')
-rw-r--r--utils/alsoft-config/mainwindow.cpp16
-rw-r--r--utils/alsoft-config/mainwindow.ui29
2 files changed, 38 insertions, 7 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index 09c7ca72..eb4458b2 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -463,6 +463,9 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->pulseAdjLatencyCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
connect(ui->pwireAssumeAudioCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
+ connect(ui->pwireRtMixCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
+
+ connect(ui->wasapiResamplerCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
connect(ui->jackAutospawnCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
connect(ui->jackConnectPortsCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);
@@ -931,8 +934,10 @@ void MainWindow::loadConfig(const QString &fname)
ui->pulseFixRateCheckBox->setCheckState(getCheckState(settings.value("pulse/fix-rate")));
ui->pulseAdjLatencyCheckBox->setCheckState(getCheckState(settings.value("pulse/adjust-latency")));
- ui->pwireAssumeAudioCheckBox->setCheckState(settings.value("pipewire/assume-audio").toBool()
- ? Qt::Checked : Qt::Unchecked);
+ ui->pwireAssumeAudioCheckBox->setCheckState(getCheckState(settings.value("pipewire/assume-audio")));
+ ui->pwireRtMixCheckBox->setCheckState(getCheckState(settings.value("pipewire/rt-mix")));
+
+ ui->wasapiResamplerCheckBox->setCheckState(getCheckState(settings.value("wasapi/allow-resampler")));
ui->jackAutospawnCheckBox->setCheckState(getCheckState(settings.value("jack/spawn-server")));
ui->jackConnectPortsCheckBox->setCheckState(getCheckState(settings.value("jack/connect-ports")));
@@ -1135,11 +1140,10 @@ void MainWindow::saveConfig(const QString &fname) const
(!ui->enableEaxCheck->isEnabled() || ui->enableEaxCheck->isChecked())
? QString{/*"true"*/} : QString{"false"});
- settings.setValue("pipewire/assume-audio", ui->pwireAssumeAudioCheckBox->isChecked()
- ? QString{"true"} : QString{/*"false"*/});
+ settings.setValue("pipewire/assume-audio", getCheckValue(ui->pwireAssumeAudioCheckBox));
+ settings.setValue("pipewire/rt-mix", getCheckValue(ui->pwireRtMixCheckBox));
- settings.setValue("wasapi/allow-resampler", ui->wasapiResamplerCheckBox->isChecked()
- ? QString{/*"true"*/} : QString{"false"});
+ settings.setValue("wasapi/allow-resampler", getCheckValue(ui->wasapiResamplerCheckBox));
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 2a997995..b959cf74 100644
--- a/utils/alsoft-config/mainwindow.ui
+++ b/utils/alsoft-config/mainwindow.ui
@@ -1360,6 +1360,33 @@ are reported.</string>
<property name="text">
<string>Assume audio support</string>
</property>
+ <property name="tristate">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="QCheckBox" name="pwireRtMixCheckBox">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>40</y>
+ <width>161</width>
+ <height>21</height>
+ </rect>
+ </property>
+ <property name="toolTip">
+ <string>Renders samples directly in the real-time
+processing callback. This allows for lower
+latency and less overall CPU utilization, but
+can increase the risk of underruns when
+increasing the amount of processing the
+mixer needs to do.</string>
+ </property>
+ <property name="text">
+ <string>Real-time Mixing</string>
+ </property>
+ <property name="tristate">
+ <bool>true</bool>
+ </property>
</widget>
</widget>
<widget class="QWidget" name="page_2">
@@ -1382,7 +1409,7 @@ for output.</string>
<property name="text">
<string>Allow Resampler</string>
</property>
- <property name="checked">
+ <property name="tristate">
<bool>true</bool>
</property>
</widget>