flip default for enable filter to be disable filter to work around settings bug

This commit is contained in:
ZappoMan 2014-09-17 07:04:16 -07:00
parent e8f5c46589
commit 2a9d8d9238
2 changed files with 10 additions and 8 deletions

View file

@ -690,10 +690,12 @@ void AudioMixer::run() {
qDebug() << "Stream stats will be printed to stdout"; qDebug() << "Stream stats will be printed to stdout";
} }
const QString FILTER_KEY = "J-enable-filter"; const QString FILTER_KEY = "J-disable-filter";
_enableFilter = audioGroupObject[FILTER_KEY].toBool(); _enableFilter = !audioGroupObject[FILTER_KEY].toBool();
if (_enableFilter) { if (_enableFilter) {
qDebug() << "Filter enabled"; qDebug() << "Filter enabled";
} else {
qDebug() << "Filter disabled";
} }
const QString UNATTENUATED_ZONE_KEY = "Z-unattenuated-zone"; const QString UNATTENUATED_ZONE_KEY = "Z-unattenuated-zone";

View file

@ -57,17 +57,17 @@
"help": "If enabled, audio upstream and downstream stats of each agent will be printed each second to stdout", "help": "If enabled, audio upstream and downstream stats of each agent will be printed each second to stdout",
"default": false "default": false
}, },
"J-disable-filter": {
"type": "checkbox",
"label": "Disable Positional Filter",
"help": "If checked the positional audio stream will not use a lowpass filter",
"default": false
},
"Z-unattenuated-zone": { "Z-unattenuated-zone": {
"label": "Unattenuated Zone", "label": "Unattenuated Zone",
"help": "Boxes for source and listener (corner x, corner y, corner z, size x, size y, size z, corner x, corner y, corner z, size x, size y, size z)", "help": "Boxes for source and listener (corner x, corner y, corner z, size x, size y, size z, corner x, corner y, corner z, size x, size y, size z)",
"placeholder": "no zone", "placeholder": "no zone",
"default": "" "default": ""
},
"J-enable-filter": {
"type": "checkbox",
"label": "Enable Positional Filter",
"help": "If enabled, positional audio stream uses lowpass filter",
"default": true
} }
} }
} }