Disable NFC by default

This commit is contained in:
Chris Robinson
2019-04-29 13:07:02 -07:00
parent b42694ea31
commit cef7eebed6
3 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ void InitNearFieldCtrl(ALCdevice *device, ALfloat ctrl_dist, ALsizei order, cons
{
/* NFC is only used when AvgSpeakerDist is greater than 0. */
const char *devname{device->DeviceName.c_str()};
if(!GetConfigValueBool(devname, "decoder", "nfc", 1) || !(ctrl_dist > 0.0f))
if(!GetConfigValueBool(devname, "decoder", "nfc", 0) || !(ctrl_dist > 0.0f))
return;
device->AvgSpeakerDist = minf(ctrl_dist, 10.0f);
+10 -9
View File
@@ -275,17 +275,18 @@ distance-comp = true
# 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
# in the decoder configuration file.
nfc = false
## nfc-ref-delay
# Specifies the reference delay value for ambisonic output. When channels is
# set to one of the ambi* formats, this option enables NFC-HOA output with the
# specified Reference Delay parameter. The specified value can then be shared
# with an appropriate NFC-HOA decoder to reproduce correct near-field effects.
# Keep in mind that despite being designed for higher-order ambisonics, this
# applies to first-order output all the same. When left unset, normal output
# is created with no near-field simulation.
# Specifies the reference delay value for ambisonic output when NFC filters
# are enabled. If channels is set to one of the ambi* formats, this option
# enables NFC-HOA output with the specified Reference Delay parameter. The
# specified value can then be shared with an appropriate NFC-HOA decoder to
# reproduce correct near-field effects. Keep in mind that despite being
# designed for higher-order ambisonics, this also applies to first-order
# output. When left unset, normal output is created with no near-field
# simulation. Requires the nfc option to also be enabled.
nfc-ref-delay =
## quad:
+2 -2
View File
@@ -697,7 +697,7 @@ 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();
bool nfeffects = settings.value("decoder/nfc", false).toBool();
ui->decoderNFEffectsCheckBox->setChecked(nfeffects);
double refdelay = settings.value("decoder/nfc-ref-delay", 0.0).toDouble();
ui->decoderNFRefDelaySpinBox->setValue(refdelay);
@@ -958,7 +958,7 @@ void MainWindow::saveConfig(const QString &fname) const
ui->decoderDistCompCheckBox->isChecked() ? QString(/*"true"*/) : QString("false")
);
settings.setValue("decoder/nfc",
ui->decoderNFEffectsCheckBox->isChecked() ? QString(/*"true"*/) : QString("false")
ui->decoderNFEffectsCheckBox->isChecked() ? QString("true") : QString(/*"false"*/)
);
double refdelay = ui->decoderNFRefDelaySpinBox->value();
settings.setValue("decoder/nfc-ref-delay",