From 7ddd49e16a3ac854eaa88f2e3367575bf6d5b7ec Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 5 Aug 2020 00:43:08 -0700 Subject: [PATCH] Add the jack/connect-ports option to alsoft-config --- utils/alsoft-config/mainwindow.cpp | 3 +++ utils/alsoft-config/mainwindow.ui | 18 +++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index df4b692e..b67df582 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -446,6 +446,7 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->pulseAdjLatencyCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton); connect(ui->jackAutospawnCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton); + connect(ui->jackConnectPortsCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton); connect(ui->jackBufferSizeSlider, &QSlider::valueChanged, this, &MainWindow::updateJackBufferSizeEdit); connect(ui->jackBufferSizeLine, &QLineEdit::editingFinished, this, &MainWindow::updateJackBufferSizeSlider); @@ -918,6 +919,7 @@ void MainWindow::loadConfig(const QString &fname) ui->pulseAdjLatencyCheckBox->setCheckState(getCheckState(settings.value("pulse/adjust-latency"))); ui->jackAutospawnCheckBox->setCheckState(getCheckState(settings.value("jack/spawn-server"))); + ui->jackConnectPortsCheckBox->setCheckState(getCheckState(settings.value("jack/connect-ports"))); ui->jackBufferSizeLine->setText(settings.value("jack/buffer-size", QString()).toString()); updateJackBufferSizeSlider(); @@ -1127,6 +1129,7 @@ void MainWindow::saveConfig(const QString &fname) const settings.setValue("pulse/adjust-latency", getCheckValue(ui->pulseAdjLatencyCheckBox)); settings.setValue("jack/spawn-server", getCheckValue(ui->jackAutospawnCheckBox)); + settings.setValue("jack/connect-ports", getCheckValue(ui->jackConnectPortsCheckBox)); settings.setValue("jack/buffer-size", ui->jackBufferSizeLine->text()); settings.setValue("alsa/device", ui->alsaDefaultDeviceLine->text()); diff --git a/utils/alsoft-config/mainwindow.ui b/utils/alsoft-config/mainwindow.ui index 0506304e..77688cf0 100644 --- a/utils/alsoft-config/mainwindow.ui +++ b/utils/alsoft-config/mainwindow.ui @@ -1442,7 +1442,7 @@ drop-outs. 10 - 40 + 70 401 80 @@ -1500,6 +1500,22 @@ processing requests. Must be a power of 2. + + + + 20 + 40 + 141 + 21 + + + + AutoConnect Ports + + + true + +