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
parent
7bf4c4445d
commit
b0b1446aa7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue