From b304a29cf295775b215a20b634d406a370b0d53f Mon Sep 17 00:00:00 2001 From: Michael Pannekoek Date: Mon, 3 Aug 2020 23:01:46 +1000 Subject: [PATCH] minor fix - remap memory so that fft buffers should not cross a 65536 item boundary, which should fix larger fft sizes (only matters if you actually manually change the fft size in the code) --- vocalrediso.jsfx | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/vocalrediso.jsfx b/vocalrediso.jsfx index 857e008..bbab662 100644 --- a/vocalrediso.jsfx +++ b/vocalrediso.jsfx @@ -70,21 +70,18 @@ SIZE = 8192; // to mute the first inital buffers silence = 2; -// Left channel -bufferL = SIZE*0; -bufferI1L = SIZE*1; -bufferI2L = SIZE*2; -bufferFFTIL = SIZE*3; // fft has real and complex values thus is twice as large -// Right channel -bufferR = SIZE*5; -bufferI1R = SIZE*6; -bufferI2R = SIZE*7; -bufferFFTIR = SIZE*8; -// fft has real and complex values thus is twice as large -bufferO1C = SIZE*10; -bufferO2C = SIZE*11; -bufferFFTO = SIZE*12; +bufferFFTIL = SIZE*0; +bufferFFTIR = SIZE*2; +bufferFFTO = SIZE*4; +bufferL = SIZE*6; +bufferI1L = SIZE*7; +bufferI2L = SIZE*8; +bufferR = SIZE*9; +bufferI1R = SIZE*10; +bufferI2R = SIZE*11; +bufferO1C = SIZE*12; +bufferO2C = SIZE*13; strengthBuffer = SIZE*14; phaseWbuffer = SIZE*15; freembuf(SIZE*16 + 1);