Headphone Virtualization: Fix an oops

The previous commit was not sound. Now it is.
CQTexperiment
Christopher Snowhill 2022-01-25 17:45:32 -08:00 committed by GitHub
parent e53144acfa
commit bb029757fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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
};
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) {
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);
@ -174,7 +172,7 @@
}
else {
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) {