diff options
author | Chris Robinson <[email protected]> | 2022-04-26 23:32:15 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-04-26 23:32:15 -0700 |
commit | 593966c8dbdbf2dbcd8768b258a3b22adb548b2f (patch) | |
tree | 720dd3a36188cdb1ff55165d1b2bd51e5fd7d687 /utils/alsoft-config | |
parent | 07dd62e53f3abaf918262953895961bd38848a7e (diff) |
Handle 3D7.1 as a separate channel configuration
It's treated as 5.1 + 2 aux channels. This allows AL_DIRECT_CHANNELS_SOFT to
behave better, not forwarding rear left/right channel inputs to lower front and
upper rear, and allows reporting a more appropriate output mode to the app
instead of 7.1.
Diffstat (limited to 'utils/alsoft-config')
-rw-r--r-- | utils/alsoft-config/mainwindow.cpp | 5 | ||||
-rw-r--r-- | utils/alsoft-config/mainwindow.h | 1 | ||||
-rw-r--r-- | utils/alsoft-config/mainwindow.ui | 109 |
3 files changed, 80 insertions, 35 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index 8a179ada..3565493e 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -86,6 +86,7 @@ static const struct NameValuePair { { "5.1 Surround", "surround51" }, { "6.1 Surround", "surround61" }, { "7.1 Surround", "surround71" }, + { "3D7.1 Surround", "surround3d71" }, { "Ambisonic, 1st Order", "ambi1" }, { "Ambisonic, 2nd Order", "ambi2" }, @@ -412,6 +413,8 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->decoder61Button, &QPushButton::clicked, this, &MainWindow::select61DecoderFile); connect(ui->decoder71LineEdit, &QLineEdit::textChanged, this, &MainWindow::enableApplyButton); connect(ui->decoder71Button, &QPushButton::clicked, this, &MainWindow::select71DecoderFile); + connect(ui->decoder3D71LineEdit, &QLineEdit::textChanged, this, &MainWindow::enableApplyButton); + connect(ui->decoder3D71Button, &QPushButton::clicked, this, &MainWindow::select3D71DecoderFile); connect(ui->preferredHrtfComboBox, qcb_cicint, this, &MainWindow::enableApplyButton); connect(ui->hrtfStateComboBox, qcb_cicint, this, &MainWindow::enableApplyButton); @@ -1252,6 +1255,8 @@ void MainWindow::select61DecoderFile() { selectDecoderFile(ui->decoder61LineEdit, "Select 6.1 Surround Decoder");} void MainWindow::select71DecoderFile() { selectDecoderFile(ui->decoder71LineEdit, "Select 7.1 Surround Decoder");} +void MainWindow::select3D71DecoderFile() +{ selectDecoderFile(ui->decoder3D71LineEdit, "Select 3D7.1 Surround Decoder");} void MainWindow::selectDecoderFile(QLineEdit *line, const char *caption) { QString dir{line->text()}; diff --git a/utils/alsoft-config/mainwindow.h b/utils/alsoft-config/mainwindow.h index ca53582b..f7af8eac 100644 --- a/utils/alsoft-config/mainwindow.h +++ b/utils/alsoft-config/mainwindow.h @@ -39,6 +39,7 @@ private slots: void select51DecoderFile(); void select61DecoderFile(); void select71DecoderFile(); + void select3D71DecoderFile(); void updateJackBufferSizeEdit(int size); void updateJackBufferSizeSlider(); diff --git a/utils/alsoft-config/mainwindow.ui b/utils/alsoft-config/mainwindow.ui index 84a99385..8d057679 100644 --- a/utils/alsoft-config/mainwindow.ui +++ b/utils/alsoft-config/mainwindow.ui @@ -668,9 +668,9 @@ configuration file.</string> <property name="geometry"> <rect> <x>-10</x> - <y>160</y> + <y>140</y> <width>551</width> - <height>161</height> + <height>231</height> </rect> </property> <property name="title"> @@ -682,10 +682,10 @@ configuration file.</string> <widget class="QLineEdit" name="decoderQuadLineEdit"> <property name="geometry"> <rect> - <x>120</x> + <x>130</x> <y>30</y> - <width>311</width> - <height>21</height> + <width>301</width> + <height>25</height> </rect> </property> </widget> @@ -694,8 +694,8 @@ configuration file.</string> <rect> <x>20</x> <y>30</y> - <width>91</width> - <height>21</height> + <width>101</width> + <height>25</height> </rect> </property> <property name="text"> @@ -711,7 +711,7 @@ configuration file.</string> <x>440</x> <y>30</y> <width>91</width> - <height>21</height> + <height>25</height> </rect> </property> <property name="text"> @@ -721,10 +721,10 @@ configuration file.</string> <widget class="QLineEdit" name="decoder51LineEdit"> <property name="geometry"> <rect> - <x>120</x> - <y>60</y> - <width>311</width> - <height>21</height> + <x>130</x> + <y>70</y> + <width>301</width> + <height>25</height> </rect> </property> </widget> @@ -732,9 +732,9 @@ configuration file.</string> <property name="geometry"> <rect> <x>440</x> - <y>60</y> + <y>70</y> <width>91</width> - <height>21</height> + <height>25</height> </rect> </property> <property name="text"> @@ -745,9 +745,9 @@ configuration file.</string> <property name="geometry"> <rect> <x>20</x> - <y>60</y> - <width>91</width> - <height>21</height> + <y>70</y> + <width>101</width> + <height>25</height> </rect> </property> <property name="text"> @@ -761,9 +761,9 @@ configuration file.</string> <property name="geometry"> <rect> <x>20</x> - <y>90</y> - <width>91</width> - <height>21</height> + <y>110</y> + <width>101</width> + <height>25</height> </rect> </property> <property name="text"> @@ -776,10 +776,10 @@ configuration file.</string> <widget class="QLineEdit" name="decoder61LineEdit"> <property name="geometry"> <rect> - <x>120</x> - <y>90</y> - <width>311</width> - <height>21</height> + <x>130</x> + <y>110</y> + <width>301</width> + <height>25</height> </rect> </property> </widget> @@ -787,9 +787,9 @@ configuration file.</string> <property name="geometry"> <rect> <x>440</x> - <y>90</y> + <y>110</y> <width>91</width> - <height>21</height> + <height>25</height> </rect> </property> <property name="text"> @@ -800,9 +800,9 @@ configuration file.</string> <property name="geometry"> <rect> <x>440</x> - <y>120</y> + <y>150</y> <width>91</width> - <height>21</height> + <height>25</height> </rect> </property> <property name="text"> @@ -812,10 +812,10 @@ configuration file.</string> <widget class="QLineEdit" name="decoder71LineEdit"> <property name="geometry"> <rect> - <x>120</x> - <y>120</y> - <width>311</width> - <height>21</height> + <x>130</x> + <y>150</y> + <width>301</width> + <height>25</height> </rect> </property> </widget> @@ -823,9 +823,9 @@ configuration file.</string> <property name="geometry"> <rect> <x>20</x> - <y>120</y> - <width>91</width> - <height>21</height> + <y>150</y> + <width>101</width> + <height>25</height> </rect> </property> <property name="text"> @@ -835,6 +835,45 @@ configuration file.</string> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> + <widget class="QLabel" name="label_33"> + <property name="geometry"> + <rect> + <x>20</x> + <y>190</y> + <width>101</width> + <height>25</height> + </rect> + </property> + <property name="text"> + <string>3D7.1 Surround:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + <widget class="QLineEdit" name="decoder3D71LineEdit"> + <property name="geometry"> + <rect> + <x>130</x> + <y>190</y> + <width>301</width> + <height>25</height> + </rect> + </property> + </widget> + <widget class="QPushButton" name="decoder3D71Button"> + <property name="geometry"> + <rect> + <x>440</x> + <y>190</y> + <width>91</width> + <height>25</height> + </rect> + </property> + <property name="text"> + <string>Browse...</string> + </property> + </widget> </widget> <widget class="QCheckBox" name="decoderNFEffectsCheckBox"> <property name="geometry"> |