Skip to content

Commit

Permalink
minor fix - remap memory so that fft buffers should not cross a 65536…
Browse files Browse the repository at this point in the history
… item boundary, which should fix larger fft sizes

(only matters if you actually manually change the fft size in the code)
  • Loading branch information
micsthepick committed Aug 3, 2020
1 parent ecd803c commit b304a29
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions vocalrediso.jsfx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b304a29

Please sign in to comment.