From f276e83c8d136b12d5f61c323d340aee47ff88d5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 12 Mar 2017 08:18:36 -0700 Subject: [PATCH] Document the nfc config option and expose it in alsoft-config --- alsoftrc.sample | 9 +++++++++ utils/alsoft-config/mainwindow.cpp | 6 ++++++ utils/alsoft-config/mainwindow.ui | 31 +++++++++++++++++++++++++++++- 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/alsoftrc.sample b/alsoftrc.sample index 1068e311..26ef9153 100644 --- a/alsoftrc.sample +++ b/alsoftrc.sample @@ -238,6 +238,15 @@ hq-mode = false # specified in the decoder configuration file. distance-comp = true +## nfc: +# Enables near-field control filters. This simulates and compensates for low- +# frequency effects caused by the curvature of nearby sound-waves, which +# creates a more realistic perception of sound distance. Note that the effect +# may be stronger or weaker than intended if the application doesn't use or +# specify an appropriate unit scale, or if incorrect speaker distances are set +# in the decoder configuration file. Requires hq-mode to be enabled. +nfc = true + ## quad: # Decoder configuration file for Quadrophonic channel output. See # docs/ambdec.txt for a description of the file format. diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index 93641e85..caa2d5d4 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -331,6 +331,7 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->decoderHQModeCheckBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton())); connect(ui->decoderDistCompCheckBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton())); + connect(ui->decoderNFEffectsCheckBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton())); connect(ui->decoderQuadLineEdit, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton())); connect(ui->decoderQuadButton, SIGNAL(clicked()), this, SLOT(selectQuadDecoderFile())); connect(ui->decoder51LineEdit, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton())); @@ -665,6 +666,8 @@ void MainWindow::loadConfig(const QString &fname) ui->decoderHQModeCheckBox->setChecked(hqmode); bool distcomp = settings.value("decoder/distance-comp", true).toBool(); ui->decoderDistCompCheckBox->setChecked(distcomp); + bool nfeffects = settings.value("decoder/nfc", true).toBool(); + ui->decoderNFEffectsCheckBox->setChecked(nfeffects); ui->decoderQuadLineEdit->setText(settings.value("decoder/quad").toString()); ui->decoder51LineEdit->setText(settings.value("decoder/surround51").toString()); @@ -894,6 +897,9 @@ void MainWindow::saveConfig(const QString &fname) const settings.setValue("decoder/distance-comp", ui->decoderDistCompCheckBox->isChecked() ? QString(/*"true"*/) : QString("false") ); + settings.setValue("decoder/nfc", + ui->decoderNFEffectsCheckBox->isChecked() ? QString(/*"true"*/) : QString("false") + ); settings.setValue("decoder/quad", ui->decoderQuadLineEdit->text()); settings.setValue("decoder/surround51", ui->decoder51LineEdit->text()); diff --git a/utils/alsoft-config/mainwindow.ui b/utils/alsoft-config/mainwindow.ui index 806b0ce0..a077e8a5 100644 --- a/utils/alsoft-config/mainwindow.ui +++ b/utils/alsoft-config/mainwindow.ui @@ -621,7 +621,7 @@ configuration file. -10 - 100 + 120 551 161 @@ -789,6 +789,35 @@ configuration file. + + + + 10 + 80 + 181 + 21 + + + + Simulates and compensates for low-frequency effects +caused by the curvature of nearby sound-waves, which +creates a more realistic perception of sound distance. +Note that the effect may be stronger or weaker than +intended if the application doesn't use or specify an +appropriate unit scale, or if incorrect speaker distances +are set in the decoder configuration file. Requires High +Quality Mode to be enabled. + + + Qt::RightToLeft + + + Near-Field Effects: + + + true + +