diff options
author | Chris Robinson <[email protected]> | 2017-02-22 19:18:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-02-22 19:18:01 -0800 |
commit | 0ce4c9b8fa90df6111fb81debf583b0fc9200063 (patch) | |
tree | e81c1aee27782809d49392dceb2e51e4f56767a3 /utils/alsoft-config | |
parent | d04cc28f33c5a21273fc42c023b41dbcfa89632b (diff) |
Rename stereo-panning option to stereo-encoding
Also rename the 'paired' value to 'panpot', and make it the default.
Diffstat (limited to 'utils/alsoft-config')
-rw-r--r-- | utils/alsoft-config/mainwindow.cpp | 24 | ||||
-rw-r--r-- | utils/alsoft-config/mainwindow.ui | 16 |
2 files changed, 21 insertions, 19 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index 200f6811..93641e85 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -110,10 +110,10 @@ static const struct NameValuePair { { "Headphones", "headphones" }, { "", "" } -}, stereoPanList[] = { +}, stereoEncList[] = { { "Default", "" }, + { "Pan Pot", "panpot" }, { "UHJ", "uhj" }, - { "Pair-Wise", "paired" }, { "", "" } }, ambiFormatList[] = { @@ -234,9 +234,9 @@ MainWindow::MainWindow(QWidget *parent) : for(int i = 0;stereoModeList[i].name[0];i++) ui->stereoModeCombo->addItem(stereoModeList[i].name); ui->stereoModeCombo->adjustSize(); - for(int i = 0;stereoPanList[i].name[0];i++) - ui->stereoPanningComboBox->addItem(stereoPanList[i].name); - ui->stereoPanningComboBox->adjustSize(); + for(int i = 0;stereoEncList[i].name[0];i++) + ui->stereoEncodingComboBox->addItem(stereoEncList[i].name); + ui->stereoEncodingComboBox->adjustSize(); for(int i = 0;ambiFormatList[i].name[0];i++) ui->ambiFormatComboBox->addItem(ambiFormatList[i].name); ui->ambiFormatComboBox->adjustSize(); @@ -326,7 +326,7 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->periodCountSlider, SIGNAL(valueChanged(int)), this, SLOT(updatePeriodCountEdit(int))); connect(ui->periodCountEdit, SIGNAL(editingFinished()), this, SLOT(updatePeriodCountSlider())); - connect(ui->stereoPanningComboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(enableApplyButton())); + connect(ui->stereoEncodingComboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(enableApplyButton())); connect(ui->ambiFormatComboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(enableApplyButton())); connect(ui->decoderHQModeCheckBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton())); @@ -637,15 +637,15 @@ void MainWindow::loadConfig(const QString &fname) updatePeriodCountSlider(); } - QString stereopan = settings.value("stereo-panning").toString(); - ui->stereoPanningComboBox->setCurrentIndex(0); + QString stereopan = settings.value("stereo-encoding").toString(); + ui->stereoEncodingComboBox->setCurrentIndex(0); if(stereopan.isEmpty() == false) { - QString str = getNameFromValue(stereoPanList, stereopan); + QString str = getNameFromValue(stereoEncList, stereopan); if(!str.isEmpty()) { - int j = ui->stereoPanningComboBox->findText(str); - if(j > 0) ui->stereoPanningComboBox->setCurrentIndex(j); + int j = ui->stereoEncodingComboBox->findText(str); + if(j > 0) ui->stereoEncodingComboBox->setCurrentIndex(j); } } @@ -885,7 +885,7 @@ void MainWindow::saveConfig(const QString &fname) const settings.setValue("resampler", resamplerList[ui->resamplerSlider->value()].value); settings.setValue("stereo-mode", getValueFromName(stereoModeList, ui->stereoModeCombo->currentText())); - settings.setValue("stereo-panning", getValueFromName(stereoPanList, ui->stereoPanningComboBox->currentText())); + settings.setValue("stereo-encoding", getValueFromName(stereoEncList, ui->stereoEncodingComboBox->currentText())); settings.setValue("ambi-format", getValueFromName(ambiFormatList, ui->ambiFormatComboBox->currentText())); settings.setValue("decoder/hq-mode", diff --git a/utils/alsoft-config/mainwindow.ui b/utils/alsoft-config/mainwindow.ui index 4db93c36..18392430 100644 --- a/utils/alsoft-config/mainwindow.ui +++ b/utils/alsoft-config/mainwindow.ui @@ -428,7 +428,7 @@ frames needed for each mixing update.</string> </widget> </widget> </widget> - <widget class="QComboBox" name="stereoPanningComboBox"> + <widget class="QComboBox" name="stereoEncodingComboBox"> <property name="geometry"> <rect> <x>130</x> @@ -438,11 +438,13 @@ frames needed for each mixing update.</string> </rect> </property> <property name="toolTip"> - <string>Selects the panning method for non-HRTF stereo -mixing. UHJ creates stereo-compatible two-channel -output, which encodes some surround information. -Pair-Wise uses standard pair-wise panning between --30 and +30 degrees. The default is UHJ.</string> + <string>Pan Pot uses standard amplitude panning (aka +pair-wise, stereo pair, etc) between -30 and +30 +degrees, while UHJ creates a stereo-compatible +two-channel UHJ mix, which encodes some +surround sound information into stereo output +that can be decoded with a surround sound +receiver.</string> </property> </widget> <widget class="QLabel" name="label_19"> @@ -455,7 +457,7 @@ Pair-Wise uses standard pair-wise panning between </rect> </property> <property name="text"> - <string>Stereo Panning:</string> + <string>Stereo Encoding:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |