From 5a2ef2590f38c72883f9ee2e18cc9980634df7be Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 20 Feb 2017 09:08:57 -0800 Subject: Allow distance compensation for non-HQ rendering as well It still requires a custom configuration to specify appropriate speaker distances. --- utils/alsoft-config/mainwindow.cpp | 9 +-------- utils/alsoft-config/mainwindow.h | 2 -- utils/alsoft-config/mainwindow.ui | 5 ++--- 3 files changed, 3 insertions(+), 13 deletions(-) (limited to 'utils/alsoft-config') diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index ab992843..e4dc10fc 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -329,7 +329,7 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->stereoPanningComboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(enableApplyButton())); connect(ui->ambiFormatComboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(enableApplyButton())); - connect(ui->decoderHQModeCheckBox, SIGNAL(stateChanged(int)), this, SLOT(toggleHqState(int))); + connect(ui->decoderHQModeCheckBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton())); connect(ui->decoderDistCompCheckBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton())); connect(ui->decoderQuadLineEdit, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton())); connect(ui->decoderQuadButton, SIGNAL(clicked()), this, SLOT(selectQuadDecoderFile())); @@ -665,7 +665,6 @@ void MainWindow::loadConfig(const QString &fname) ui->decoderHQModeCheckBox->setChecked(hqmode); bool distcomp = settings.value("decoder/distance-comp", true).toBool(); ui->decoderDistCompCheckBox->setChecked(distcomp); - ui->decoderDistCompCheckBox->setEnabled(hqmode); ui->decoderQuadLineEdit->setText(settings.value("decoder/quad").toString()); ui->decoder51LineEdit->setText(settings.value("decoder/surround51").toString()); @@ -1110,12 +1109,6 @@ void MainWindow::updatePeriodCountSlider() } -void MainWindow::toggleHqState(int state) -{ - ui->decoderDistCompCheckBox->setEnabled(state); - enableApplyButton(); -} - void MainWindow::selectQuadDecoderFile() { selectDecoderFile(ui->decoderQuadLineEdit, "Select Quadrophonic Decoder");} void MainWindow::select51DecoderFile() diff --git a/utils/alsoft-config/mainwindow.h b/utils/alsoft-config/mainwindow.h index 6d572df6..8b763845 100644 --- a/utils/alsoft-config/mainwindow.h +++ b/utils/alsoft-config/mainwindow.h @@ -35,8 +35,6 @@ private slots: void updatePeriodCountEdit(int size); void updatePeriodCountSlider(); - void toggleHqState(int state); - void selectQuadDecoderFile(); void select51DecoderFile(); void select61DecoderFile(); diff --git a/utils/alsoft-config/mainwindow.ui b/utils/alsoft-config/mainwindow.ui index f14554e6..afb91996 100644 --- a/utils/alsoft-config/mainwindow.ui +++ b/utils/alsoft-config/mainwindow.ui @@ -601,9 +601,8 @@ appropriate speaker configuration you intend to use. This applies the necessary delays and attenuation to make the speakers behave as though they are all equidistant, which is important for proper -playback of 3D sound rendering. Requires the high -quality ambisonic renderer, as well as the proper -distances to be specified in the decoder +playback of 3D sound rendering. Requires the +proper distances to be specified in the decoder configuration file. -- cgit v1.2.3