HRIR Filter: Corrected scale math, fixing volume

The volume should have been twice what it was, because I got this scale
wrong. The correct scale for Accelerate inverse FFT is 1/4 per sample,
not 1/8 like I accidentally misread while rewriting a convolver for the
umpteenth time from scratch.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-02-06 21:53:42 -08:00
parent 7bf4c4445d
commit b0b1446aa7
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ static const int8_t speakers_to_hesuvi_14[8][2][8] = {
}
- (void)process:(const float *)inBuffer sampleCount:(size_t)count toBuffer:(float *)outBuffer {
const float scale = 1.0 / (8.0 * (float)fftSize);
const float scale = 1.0 / (4.0 * (float)fftSize);
while(count > 0) {
size_t countToDo = (count > bufferSize) ? bufferSize : count;