1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | #ifndef QAMBISONICDECODERDATA_P_H |
4 | #define QAMBISONICDECODERDATA_P_H |
5 | |
6 | #include <qtspatialaudioglobal_p.h> |
7 | |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | // This file is generated by the matlab/octave file adt_generate_qt.m |
19 | // using the Ambisonic Decoder Toolbox (https://bitbucket.org/ambidecodertoolbox/adt/src/master/) |
20 | |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | // Decoder matrix for 5dot0, ambisonic level 1 |
25 | static constexpr float decoderMatrix_5dot0_1_lf[5*4] = { |
26 | 0.255580f, 0.430877f, 0.000000f, 0.386458f, // L |
27 | 0.255573f, -0.430877f, 0.000000f, 0.386450f, // R |
28 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, // C |
29 | 0.552170f, 0.623932f, 0.000000f, -0.628578f, // Ls |
30 | 0.552175f, -0.623939f, 0.000000f, -0.628571f, // Rs |
31 | }; |
32 | |
33 | // Decoder matrix for 5dot0, ambisonic level 1 |
34 | static constexpr float decoderMatrix_5dot0_1_hf[5*4] = { |
35 | 0.361445f, 0.351810f, 0.000000f, 0.315542f, // L |
36 | 0.361435f, -0.351809f, 0.000000f, 0.315535f, // R |
37 | 0.191780f, 0.000000f, 0.000000f, 0.268870f, // C |
38 | 0.780886f, 0.509439f, 0.000000f, -0.513232f, // Ls |
39 | 0.780893f, -0.509444f, 0.000000f, -0.513226f, // Rs |
40 | }; |
41 | |
42 | // Decoder matrix for 5dot0, ambisonic level 2 |
43 | static constexpr float decoderMatrix_5dot0_2_lf[5*9] = { |
44 | 0.255580f, 0.430877f, 0.000000f, 0.386458f, 0.157509f, 0.000000f, -0.095304f, 0.000000f, -0.013008f, // L |
45 | 0.255573f, -0.430877f, 0.000000f, 0.386450f, -0.157507f, 0.000000f, -0.095343f, 0.000000f, -0.013009f, // R |
46 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, 0.000000f, 0.000000f, -0.056105f, 0.000000f, 0.111010f, // C |
47 | 0.552170f, 0.623932f, 0.000000f, -0.628578f, -0.041978f, 0.000000f, -0.139072f, 0.000000f, -0.030798f, // Ls |
48 | 0.552175f, -0.623939f, 0.000000f, -0.628571f, 0.041979f, 0.000000f, -0.139039f, 0.000000f, -0.030796f, // Rs |
49 | }; |
50 | |
51 | // Decoder matrix for 5dot0, ambisonic level 2 |
52 | static constexpr float decoderMatrix_5dot0_2_hf[5*9] = { |
53 | 0.404108f, 0.527714f, 0.000000f, 0.473313f, 0.099617f, 0.000000f, -0.060276f, 0.000000f, -0.008227f, // L |
54 | 0.404097f, -0.527714f, 0.000000f, 0.473303f, -0.099616f, 0.000000f, -0.060300f, 0.000000f, -0.008228f, // R |
55 | 0.214417f, 0.000000f, 0.000000f, 0.403305f, 0.000000f, 0.000000f, -0.035484f, 0.000000f, 0.070209f, // C |
56 | 0.873057f, 0.764158f, 0.000000f, -0.769848f, -0.026549f, 0.000000f, -0.087957f, 0.000000f, -0.019478f, // Ls |
57 | 0.873065f, -0.764166f, 0.000000f, -0.769839f, 0.026550f, 0.000000f, -0.087936f, 0.000000f, -0.019477f, // Rs |
58 | }; |
59 | |
60 | // Decoder matrix for 5dot0, ambisonic level 3 |
61 | static constexpr float decoderMatrix_5dot0_3_lf[5*16] = { |
62 | 0.255580f, 0.430877f, 0.000000f, 0.386458f, 0.157509f, 0.000000f, -0.095304f, 0.000000f, -0.013008f, 0.013422f, 0.000000f, 0.030238f, 0.000000f, 0.025660f, 0.000000f, -0.014215f, // L |
63 | 0.255573f, -0.430877f, 0.000000f, 0.386450f, -0.157507f, 0.000000f, -0.095343f, 0.000000f, -0.013009f, -0.013422f, 0.000000f, -0.030227f, 0.000000f, 0.025649f, 0.000000f, -0.014214f, // R |
64 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, 0.000000f, 0.000000f, -0.056105f, 0.000000f, 0.111010f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.018999f, 0.000000f, 0.020478f, // C |
65 | 0.552170f, 0.623932f, 0.000000f, -0.628578f, -0.041978f, 0.000000f, -0.139072f, 0.000000f, -0.030798f, -0.012642f, 0.000000f, 0.049794f, 0.000000f, -0.073727f, 0.000000f, -0.001768f, // Ls |
66 | 0.552175f, -0.623939f, 0.000000f, -0.628571f, 0.041979f, 0.000000f, -0.139039f, 0.000000f, -0.030796f, 0.012642f, 0.000000f, -0.049793f, 0.000000f, -0.073721f, 0.000000f, -0.001769f, // Rs |
67 | }; |
68 | |
69 | // Decoder matrix for 5dot0, ambisonic level 3 |
70 | static constexpr float decoderMatrix_5dot0_3_hf[5*16] = { |
71 | 0.426355f, 0.618969f, 0.000000f, 0.555160f, 0.160893f, 0.000000f, -0.097352f, 0.000000f, -0.013287f, 0.006823f, 0.000000f, 0.015372f, 0.000000f, 0.013045f, 0.000000f, -0.007226f, // L |
72 | 0.426343f, -0.618969f, 0.000000f, 0.555149f, -0.160891f, 0.000000f, -0.097392f, 0.000000f, -0.013289f, -0.006823f, 0.000000f, -0.015367f, 0.000000f, 0.013039f, 0.000000f, -0.007226f, // R |
73 | 0.226221f, 0.000000f, 0.000000f, 0.473046f, 0.000000f, 0.000000f, -0.057310f, 0.000000f, 0.113395f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.009658f, 0.000000f, 0.010410f, // C |
74 | 0.921121f, 0.896300f, 0.000000f, -0.902974f, -0.042880f, 0.000000f, -0.142060f, 0.000000f, -0.031459f, -0.006427f, 0.000000f, 0.025314f, 0.000000f, -0.037481f, 0.000000f, -0.000899f, // Ls |
75 | 0.921130f, -0.896310f, 0.000000f, -0.902963f, 0.042881f, 0.000000f, -0.142027f, 0.000000f, -0.031457f, 0.006427f, 0.000000f, -0.025313f, 0.000000f, -0.037478f, 0.000000f, -0.000899f, // Rs |
76 | }; |
77 | |
78 | // Decoder matrix for 5dot1, ambisonic level 1 |
79 | static constexpr float decoderMatrix_5dot1_1_lf[6*4] = { |
80 | 0.255580f, 0.430877f, 0.000000f, 0.386458f, // L |
81 | 0.255573f, -0.430877f, 0.000000f, 0.386450f, // R |
82 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, // C |
83 | 0.5f, 0.0f, 0.0f, 0.0f, // LFE |
84 | 0.552170f, 0.623932f, 0.000000f, -0.628578f, // Ls |
85 | 0.552175f, -0.623939f, 0.000000f, -0.628571f, // Rs |
86 | }; |
87 | |
88 | // Decoder matrix for 5dot1, ambisonic level 1 |
89 | static constexpr float decoderMatrix_5dot1_1_hf[6*4] = { |
90 | 0.361445f, 0.351810f, 0.000000f, 0.315542f, // L |
91 | 0.361435f, -0.351809f, 0.000000f, 0.315535f, // R |
92 | 0.191780f, 0.000000f, 0.000000f, 0.268870f, // C |
93 | 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
94 | 0.780886f, 0.509439f, 0.000000f, -0.513232f, // Ls |
95 | 0.780893f, -0.509444f, 0.000000f, -0.513226f, // Rs |
96 | }; |
97 | |
98 | // Decoder matrix for 5dot1, ambisonic level 2 |
99 | static constexpr float decoderMatrix_5dot1_2_lf[6*9] = { |
100 | 0.255580f, 0.430877f, 0.000000f, 0.386458f, 0.157509f, 0.000000f, -0.095304f, 0.000000f, -0.013008f, // L |
101 | 0.255573f, -0.430877f, 0.000000f, 0.386450f, -0.157507f, 0.000000f, -0.095343f, 0.000000f, -0.013009f, // R |
102 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, 0.000000f, 0.000000f, -0.056105f, 0.000000f, 0.111010f, // C |
103 | 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
104 | 0.552170f, 0.623932f, 0.000000f, -0.628578f, -0.041978f, 0.000000f, -0.139072f, 0.000000f, -0.030798f, // Ls |
105 | 0.552175f, -0.623939f, 0.000000f, -0.628571f, 0.041979f, 0.000000f, -0.139039f, 0.000000f, -0.030796f, // Rs |
106 | }; |
107 | |
108 | // Decoder matrix for 5dot1, ambisonic level 2 |
109 | static constexpr float decoderMatrix_5dot1_2_hf[6*9] = { |
110 | 0.404108f, 0.527714f, 0.000000f, 0.473313f, 0.099617f, 0.000000f, -0.060276f, 0.000000f, -0.008227f, // L |
111 | 0.404097f, -0.527714f, 0.000000f, 0.473303f, -0.099616f, 0.000000f, -0.060300f, 0.000000f, -0.008228f, // R |
112 | 0.214417f, 0.000000f, 0.000000f, 0.403305f, 0.000000f, 0.000000f, -0.035484f, 0.000000f, 0.070209f, // C |
113 | 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
114 | 0.873057f, 0.764158f, 0.000000f, -0.769848f, -0.026549f, 0.000000f, -0.087957f, 0.000000f, -0.019478f, // Ls |
115 | 0.873065f, -0.764166f, 0.000000f, -0.769839f, 0.026550f, 0.000000f, -0.087936f, 0.000000f, -0.019477f, // Rs |
116 | }; |
117 | |
118 | // Decoder matrix for 5dot1, ambisonic level 3 |
119 | static constexpr float decoderMatrix_5dot1_3_lf[6*16] = { |
120 | 0.255580f, 0.430877f, 0.000000f, 0.386458f, 0.157509f, 0.000000f, -0.095304f, 0.000000f, -0.013008f, 0.013422f, 0.000000f, 0.030238f, 0.000000f, 0.025660f, 0.000000f, -0.014215f, // L |
121 | 0.255573f, -0.430877f, 0.000000f, 0.386450f, -0.157507f, 0.000000f, -0.095343f, 0.000000f, -0.013009f, -0.013422f, 0.000000f, -0.030227f, 0.000000f, 0.025649f, 0.000000f, -0.014214f, // R |
122 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, 0.000000f, 0.000000f, -0.056105f, 0.000000f, 0.111010f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.018999f, 0.000000f, 0.020478f, // C |
123 | 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
124 | 0.552170f, 0.623932f, 0.000000f, -0.628578f, -0.041978f, 0.000000f, -0.139072f, 0.000000f, -0.030798f, -0.012642f, 0.000000f, 0.049794f, 0.000000f, -0.073727f, 0.000000f, -0.001768f, // Ls |
125 | 0.552175f, -0.623939f, 0.000000f, -0.628571f, 0.041979f, 0.000000f, -0.139039f, 0.000000f, -0.030796f, 0.012642f, 0.000000f, -0.049793f, 0.000000f, -0.073721f, 0.000000f, -0.001769f, // Rs |
126 | }; |
127 | |
128 | // Decoder matrix for 5dot1, ambisonic level 3 |
129 | static constexpr float decoderMatrix_5dot1_3_hf[6*16] = { |
130 | 0.426355f, 0.618969f, 0.000000f, 0.555160f, 0.160893f, 0.000000f, -0.097352f, 0.000000f, -0.013287f, 0.006823f, 0.000000f, 0.015372f, 0.000000f, 0.013045f, 0.000000f, -0.007226f, // L |
131 | 0.426343f, -0.618969f, 0.000000f, 0.555149f, -0.160891f, 0.000000f, -0.097392f, 0.000000f, -0.013289f, -0.006823f, 0.000000f, -0.015367f, 0.000000f, 0.013039f, 0.000000f, -0.007226f, // R |
132 | 0.226221f, 0.000000f, 0.000000f, 0.473046f, 0.000000f, 0.000000f, -0.057310f, 0.000000f, 0.113395f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.009658f, 0.000000f, 0.010410f, // C |
133 | 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
134 | 0.921121f, 0.896300f, 0.000000f, -0.902974f, -0.042880f, 0.000000f, -0.142060f, 0.000000f, -0.031459f, -0.006427f, 0.000000f, 0.025314f, 0.000000f, -0.037481f, 0.000000f, -0.000899f, // Ls |
135 | 0.921130f, -0.896310f, 0.000000f, -0.902963f, 0.042881f, 0.000000f, -0.142027f, 0.000000f, -0.031457f, 0.006427f, 0.000000f, -0.025313f, 0.000000f, -0.037478f, 0.000000f, -0.000899f, // Rs |
136 | }; |
137 | |
138 | // Decoder matrix for 7dot0, ambisonic level 1 |
139 | static constexpr float decoderMatrix_7dot0_1_lf[7*4] = { |
140 | 0.205900f, 0.314866f, 0.000000f, 0.366133f, // L |
141 | 0.205883f, -0.314871f, 0.000000f, 0.366126f, // R |
142 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, // C |
143 | 0.276200f, 0.619758f, 0.000000f, 0.000000f, // Ls |
144 | 0.276228f, -0.619768f, 0.000000f, 0.000000f, // Rs |
145 | 0.276222f, 0.309884f, 0.000000f, -0.536733f, // Lb |
146 | 0.276196f, -0.309893f, 0.000000f, -0.536723f, // Rb |
147 | }; |
148 | |
149 | // Decoder matrix for 7dot0, ambisonic level 1 |
150 | static constexpr float decoderMatrix_7dot0_1_hf[7*4] = { |
151 | 0.291186f, 0.257087f, 0.000000f, 0.298946f, // L |
152 | 0.291162f, -0.257091f, 0.000000f, 0.298940f, // R |
153 | 0.191780f, 0.000000f, 0.000000f, 0.268870f, // C |
154 | 0.390605f, 0.506030f, 0.000000f, 0.000000f, // Ls |
155 | 0.390645f, -0.506039f, 0.000000f, 0.000000f, // Rs |
156 | 0.390637f, 0.253019f, 0.000000f, -0.438240f, // Lb |
157 | 0.390600f, -0.253026f, 0.000000f, -0.438232f, // Rb |
158 | }; |
159 | |
160 | // Decoder matrix for 7dot0, ambisonic level 2 |
161 | static constexpr float decoderMatrix_7dot0_2_lf[7*9] = { |
162 | 0.205900f, 0.314866f, 0.000000f, 0.366133f, 0.144868f, 0.000000f, -0.081538f, 0.000000f, 0.023353f, // L |
163 | 0.205883f, -0.314871f, 0.000000f, 0.366126f, -0.144867f, 0.000000f, -0.081652f, 0.000000f, 0.023347f, // R |
164 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, 0.000000f, 0.000000f, -0.056105f, 0.000000f, 0.111010f, // C |
165 | 0.276200f, 0.619758f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.106989f, 0.000000f, -0.163267f, // Ls |
166 | 0.276228f, -0.619768f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.106856f, 0.000000f, -0.163267f, // Rs |
167 | 0.276222f, 0.309884f, 0.000000f, -0.536733f, -0.141395f, 0.000000f, -0.106873f, 0.000000f, 0.081634f, // Lb |
168 | 0.276196f, -0.309893f, 0.000000f, -0.536723f, 0.141394f, 0.000000f, -0.107038f, 0.000000f, 0.081628f, // Rb |
169 | }; |
170 | |
171 | // Decoder matrix for 7dot0, ambisonic level 2 |
172 | static constexpr float decoderMatrix_7dot0_2_hf[7*9] = { |
173 | 0.325556f, 0.385630f, 0.000000f, 0.448419f, 0.091623f, 0.000000f, -0.051569f, 0.000000f, 0.014770f, // L |
174 | 0.325529f, -0.385637f, 0.000000f, 0.448410f, -0.091622f, 0.000000f, -0.051641f, 0.000000f, 0.014766f, // R |
175 | 0.214417f, 0.000000f, 0.000000f, 0.403305f, 0.000000f, 0.000000f, -0.035484f, 0.000000f, 0.070209f, // C |
176 | 0.436710f, 0.759045f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.067666f, 0.000000f, -0.103259f, // Ls |
177 | 0.436755f, -0.759058f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.067582f, 0.000000f, -0.103259f, // Rs |
178 | 0.436746f, 0.379529f, 0.000000f, -0.657361f, -0.089426f, 0.000000f, -0.067593f, 0.000000f, 0.051630f, // Lb |
179 | 0.436704f, -0.379539f, 0.000000f, -0.657348f, 0.089426f, 0.000000f, -0.067697f, 0.000000f, 0.051626f, // Rb |
180 | }; |
181 | |
182 | // Decoder matrix for 7dot0, ambisonic level 3 |
183 | static constexpr float decoderMatrix_7dot0_3_lf[7*16] = { |
184 | 0.205900f, 0.314866f, 0.000000f, 0.366133f, 0.144868f, 0.000000f, -0.081538f, 0.000000f, 0.023353f, 0.019489f, 0.000000f, 0.019857f, 0.000000f, 0.022683f, 0.000000f, -0.011066f, // L |
185 | 0.205883f, -0.314871f, 0.000000f, 0.366126f, -0.144867f, 0.000000f, -0.081652f, 0.000000f, 0.023347f, -0.019488f, 0.000000f, -0.019830f, 0.000000f, 0.022669f, 0.000000f, -0.011066f, // R |
186 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, 0.000000f, 0.000000f, -0.056105f, 0.000000f, 0.111010f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.018999f, 0.000000f, 0.020478f, // C |
187 | 0.276200f, 0.619758f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.106989f, 0.000000f, -0.163267f, -0.018501f, 0.000000f, 0.040168f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, // Ls |
188 | 0.276228f, -0.619768f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.106856f, 0.000000f, -0.163267f, 0.018501f, 0.000000f, -0.040194f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, // Rs |
189 | 0.276222f, 0.309884f, 0.000000f, -0.536733f, -0.141395f, 0.000000f, -0.106873f, 0.000000f, 0.081634f, 0.018501f, 0.000000f, 0.020094f, 0.000000f, -0.034809f, 0.000000f, 0.000000f, // Lb |
190 | 0.276196f, -0.309893f, 0.000000f, -0.536723f, 0.141394f, 0.000000f, -0.107038f, 0.000000f, 0.081628f, -0.018500f, 0.000000f, -0.020079f, 0.000000f, -0.034779f, 0.000000f, 0.000000f, // Rb |
191 | }; |
192 | |
193 | // Decoder matrix for 7dot0, ambisonic level 3 |
194 | static constexpr float decoderMatrix_7dot0_3_hf[7*16] = { |
195 | 0.343479f, 0.452315f, 0.000000f, 0.525962f, 0.147981f, 0.000000f, -0.083290f, 0.000000f, 0.023855f, 0.009908f, 0.000000f, 0.010095f, 0.000000f, 0.011532f, 0.000000f, -0.005626f, // L |
196 | 0.343450f, -0.452323f, 0.000000f, 0.525952f, -0.147980f, 0.000000f, -0.083406f, 0.000000f, 0.023849f, -0.009907f, 0.000000f, -0.010081f, 0.000000f, 0.011524f, 0.000000f, -0.005626f, // R |
197 | 0.226221f, 0.000000f, 0.000000f, 0.473046f, 0.000000f, 0.000000f, -0.057310f, 0.000000f, 0.113395f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.009658f, 0.000000f, 0.010410f, // C |
198 | 0.460752f, 0.890303f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.109288f, 0.000000f, -0.166775f, -0.009405f, 0.000000f, 0.020420f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, // Ls |
199 | 0.460799f, -0.890318f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.109152f, 0.000000f, -0.166775f, 0.009405f, 0.000000f, -0.020434f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, // Rs |
200 | 0.460790f, 0.445159f, 0.000000f, -0.771035f, -0.144433f, 0.000000f, -0.109170f, 0.000000f, 0.083387f, 0.009406f, 0.000000f, 0.010215f, 0.000000f, -0.017696f, 0.000000f, 0.000000f, // Lb |
201 | 0.460745f, -0.445171f, 0.000000f, -0.771020f, 0.144432f, 0.000000f, -0.109338f, 0.000000f, 0.083382f, -0.009405f, 0.000000f, -0.010207f, 0.000000f, -0.017681f, 0.000000f, 0.000000f, // Rb |
202 | }; |
203 | |
204 | // Decoder matrix for 7dot1, ambisonic level 1 |
205 | static constexpr float decoderMatrix_7dot1_1_lf[8*4] = { |
206 | 0.205900f, 0.314866f, 0.000000f, 0.366133f, // L |
207 | 0.205883f, -0.314871f, 0.000000f, 0.366126f, // R |
208 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, // C |
209 | 0.5f, 0.0f, 0.0f, 0.0f, // LFE |
210 | 0.276200f, 0.619758f, 0.000000f, 0.000000f, // Ls |
211 | 0.276228f, -0.619768f, 0.000000f, 0.000000f, // Rs |
212 | 0.276222f, 0.309884f, 0.000000f, -0.536733f, // Lb |
213 | 0.276196f, -0.309893f, 0.000000f, -0.536723f, // Rb |
214 | }; |
215 | |
216 | // Decoder matrix for 7dot1, ambisonic level 1 |
217 | static constexpr float decoderMatrix_7dot1_1_hf[8*4] = { |
218 | 0.291186f, 0.257087f, 0.000000f, 0.298946f, // L |
219 | 0.291162f, -0.257091f, 0.000000f, 0.298940f, // R |
220 | 0.191780f, 0.000000f, 0.000000f, 0.268870f, // C |
221 | 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
222 | 0.390605f, 0.506030f, 0.000000f, 0.000000f, // Ls |
223 | 0.390645f, -0.506039f, 0.000000f, 0.000000f, // Rs |
224 | 0.390637f, 0.253019f, 0.000000f, -0.438240f, // Lb |
225 | 0.390600f, -0.253026f, 0.000000f, -0.438232f, // Rb |
226 | }; |
227 | |
228 | // Decoder matrix for 7dot1, ambisonic level 2 |
229 | static constexpr float decoderMatrix_7dot1_2_lf[8*9] = { |
230 | 0.205900f, 0.314866f, 0.000000f, 0.366133f, 0.144868f, 0.000000f, -0.081538f, 0.000000f, 0.023353f, // L |
231 | 0.205883f, -0.314871f, 0.000000f, 0.366126f, -0.144867f, 0.000000f, -0.081652f, 0.000000f, 0.023347f, // R |
232 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, 0.000000f, 0.000000f, -0.056105f, 0.000000f, 0.111010f, // C |
233 | 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
234 | 0.276200f, 0.619758f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.106989f, 0.000000f, -0.163267f, // Ls |
235 | 0.276228f, -0.619768f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.106856f, 0.000000f, -0.163267f, // Rs |
236 | 0.276222f, 0.309884f, 0.000000f, -0.536733f, -0.141395f, 0.000000f, -0.106873f, 0.000000f, 0.081634f, // Lb |
237 | 0.276196f, -0.309893f, 0.000000f, -0.536723f, 0.141394f, 0.000000f, -0.107038f, 0.000000f, 0.081628f, // Rb |
238 | }; |
239 | |
240 | // Decoder matrix for 7dot1, ambisonic level 2 |
241 | static constexpr float decoderMatrix_7dot1_2_hf[8*9] = { |
242 | 0.325556f, 0.385630f, 0.000000f, 0.448419f, 0.091623f, 0.000000f, -0.051569f, 0.000000f, 0.014770f, // L |
243 | 0.325529f, -0.385637f, 0.000000f, 0.448410f, -0.091622f, 0.000000f, -0.051641f, 0.000000f, 0.014766f, // R |
244 | 0.214417f, 0.000000f, 0.000000f, 0.403305f, 0.000000f, 0.000000f, -0.035484f, 0.000000f, 0.070209f, // C |
245 | 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
246 | 0.436710f, 0.759045f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.067666f, 0.000000f, -0.103259f, // Ls |
247 | 0.436755f, -0.759058f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.067582f, 0.000000f, -0.103259f, // Rs |
248 | 0.436746f, 0.379529f, 0.000000f, -0.657361f, -0.089426f, 0.000000f, -0.067593f, 0.000000f, 0.051630f, // Lb |
249 | 0.436704f, -0.379539f, 0.000000f, -0.657348f, 0.089426f, 0.000000f, -0.067697f, 0.000000f, 0.051626f, // Rb |
250 | }; |
251 | |
252 | // Decoder matrix for 7dot1, ambisonic level 3 |
253 | static constexpr float decoderMatrix_7dot1_3_lf[8*16] = { |
254 | 0.205900f, 0.314866f, 0.000000f, 0.366133f, 0.144868f, 0.000000f, -0.081538f, 0.000000f, 0.023353f, 0.019489f, 0.000000f, 0.019857f, 0.000000f, 0.022683f, 0.000000f, -0.011066f, // L |
255 | 0.205883f, -0.314871f, 0.000000f, 0.366126f, -0.144867f, 0.000000f, -0.081652f, 0.000000f, 0.023347f, -0.019488f, 0.000000f, -0.019830f, 0.000000f, 0.022669f, 0.000000f, -0.011066f, // R |
256 | 0.135609f, 0.000000f, 0.000000f, 0.329297f, 0.000000f, 0.000000f, -0.056105f, 0.000000f, 0.111010f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.018999f, 0.000000f, 0.020478f, // C |
257 | 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
258 | 0.276200f, 0.619758f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.106989f, 0.000000f, -0.163267f, -0.018501f, 0.000000f, 0.040168f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, // Ls |
259 | 0.276228f, -0.619768f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.106856f, 0.000000f, -0.163267f, 0.018501f, 0.000000f, -0.040194f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, // Rs |
260 | 0.276222f, 0.309884f, 0.000000f, -0.536733f, -0.141395f, 0.000000f, -0.106873f, 0.000000f, 0.081634f, 0.018501f, 0.000000f, 0.020094f, 0.000000f, -0.034809f, 0.000000f, 0.000000f, // Lb |
261 | 0.276196f, -0.309893f, 0.000000f, -0.536723f, 0.141394f, 0.000000f, -0.107038f, 0.000000f, 0.081628f, -0.018500f, 0.000000f, -0.020079f, 0.000000f, -0.034779f, 0.000000f, 0.000000f, // Rb |
262 | }; |
263 | |
264 | // Decoder matrix for 7dot1, ambisonic level 3 |
265 | static constexpr float decoderMatrix_7dot1_3_hf[8*16] = { |
266 | 0.343479f, 0.452315f, 0.000000f, 0.525962f, 0.147981f, 0.000000f, -0.083290f, 0.000000f, 0.023855f, 0.009908f, 0.000000f, 0.010095f, 0.000000f, 0.011532f, 0.000000f, -0.005626f, // L |
267 | 0.343450f, -0.452323f, 0.000000f, 0.525952f, -0.147980f, 0.000000f, -0.083406f, 0.000000f, 0.023849f, -0.009907f, 0.000000f, -0.010081f, 0.000000f, 0.011524f, 0.000000f, -0.005626f, // R |
268 | 0.226221f, 0.000000f, 0.000000f, 0.473046f, 0.000000f, 0.000000f, -0.057310f, 0.000000f, 0.113395f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.009658f, 0.000000f, 0.010410f, // C |
269 | 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, // LFE |
270 | 0.460752f, 0.890303f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.109288f, 0.000000f, -0.166775f, -0.009405f, 0.000000f, 0.020420f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, // Ls |
271 | 0.460799f, -0.890318f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.109152f, 0.000000f, -0.166775f, 0.009405f, 0.000000f, -0.020434f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, // Rs |
272 | 0.460790f, 0.445159f, 0.000000f, -0.771035f, -0.144433f, 0.000000f, -0.109170f, 0.000000f, 0.083387f, 0.009406f, 0.000000f, 0.010215f, 0.000000f, -0.017696f, 0.000000f, 0.000000f, // Lb |
273 | 0.460745f, -0.445171f, 0.000000f, -0.771020f, 0.144432f, 0.000000f, -0.109338f, 0.000000f, 0.083382f, -0.009405f, 0.000000f, -0.010207f, 0.000000f, -0.017681f, 0.000000f, 0.000000f, // Rb |
274 | }; |
275 | |
276 | QT_END_NAMESPACE |
277 | |
278 | #endif |
279 | |
280 | |