Add the jack/connect-ports option to alsoft-config

This commit is contained in:
Chris Robinson
2020-08-05 00:43:08 -07:00
parent f138369808
commit 7ddd49e16a
2 changed files with 20 additions and 1 deletions
+3
View File
@@ -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());
+17 -1
View File
@@ -1442,7 +1442,7 @@ drop-outs.</string>
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<y>70</y>
<width>401</width>
<height>80</height>
</rect>
@@ -1500,6 +1500,22 @@ processing requests. Must be a power of 2.</string>
</property>
</widget>
</widget>
<widget class="QCheckBox" name="jackConnectPortsCheckBox">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>141</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>AutoConnect Ports</string>
</property>
<property name="tristate">
<bool>true</bool>
</property>
</widget>
</widget>
<widget class="QWidget" name="page_3">
<widget class="QLabel" name="label_17">