Round the B-Format HRTF response where the multiple is defined

This commit is contained in:
Chris Robinson 2017-06-16 19:00:00 -07:00
parent e18f7ca3e4
commit 879b79740f
2 changed files with 3 additions and 4 deletions

View File

@ -284,8 +284,10 @@ ALsizei BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsize
} }
} }
} }
TRACE("Skipped min delay: %d, new combined length: %d\n", min_delay, max_length); /* Round up to the next IR size multiple. */
max_length = RoundUp(max_length, MOD_IR_SIZE);
TRACE("Skipped min delay: %d, new combined length: %d\n", min_delay, max_length);
return max_length; return max_length;
#undef NUM_BANDS #undef NUM_BANDS
} }

View File

@ -963,9 +963,6 @@ static void InitHrtfPanning(ALCdevice *device)
device->Hrtf, device->Dry.NumChannels, device->Hrtf, device->Dry.NumChannels,
AmbiPoints, AmbiMatrix, COUNTOF(AmbiPoints) AmbiPoints, AmbiMatrix, COUNTOF(AmbiPoints)
); );
/* Round up to the nearest multiple of 8 */
device->Hrtf->IrSize = (device->Hrtf->IrSize+7)&~7;
} }
static void InitUhjPanning(ALCdevice *device) static void InitUhjPanning(ALCdevice *device)