Headphone Virtualization: Fix an oops
The previous commit was not sound. Now it is.CQTexperiment
parent
e53144acfa
commit
bb029757fd
|
@ -157,8 +157,6 @@
|
||||||
{ { 0, 8, 6, 6, 4, 12, 2, 10 }, { 1, 7, 13, 13, 5, 11, 3, 9 } } // left/right/center/lfe(center)/back left/back right/side left/side right
|
{ { 0, 8, 6, 6, 4, 12, 2, 10 }, { 1, 7, 13, 13, 5, 11, 3, 9 } } // left/right/center/lfe(center)/back left/back right/side left/side right
|
||||||
};
|
};
|
||||||
|
|
||||||
const int8_t * speakers_to_hesuvi[8][2][8] = (impulseChannels == 7) ? speakers_to_hesuvi_7 : speakers_to_hesuvi_14;
|
|
||||||
|
|
||||||
for (size_t i = 0; i < channels; ++i) {
|
for (size_t i = 0; i < channels; ++i) {
|
||||||
impulse_responses[i * 2 + 0].realp = (float *) memalign_calloc(128, sizeof(float), fftSizeOver2);
|
impulse_responses[i * 2 + 0].realp = (float *) memalign_calloc(128, sizeof(float), fftSizeOver2);
|
||||||
impulse_responses[i * 2 + 0].imagp = (float *) memalign_calloc(128, sizeof(float), fftSizeOver2);
|
impulse_responses[i * 2 + 0].imagp = (float *) memalign_calloc(128, sizeof(float), fftSizeOver2);
|
||||||
|
@ -174,7 +172,7 @@
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
leftInChannel = speakers_to_hesuvi_14[channels-1][0][i];
|
leftInChannel = speakers_to_hesuvi_14[channels-1][0][i];
|
||||||
rightInChannel = speakers_to_hesuvi_14[channels-1][0][i];
|
rightInChannel = speakers_to_hesuvi_14[channels-1][1][i];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (leftInChannel == -1 || rightInChannel == -1) {
|
if (leftInChannel == -1 || rightInChannel == -1) {
|
||||||
|
|
Loading…
Reference in New Issue