this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix???? VQT/FQT desync test try 2

alice 29693d23 794c897e

+3 -3
+2 -2
src/ext/fft.c
··· 335 335 #else 336 336 337 337 kiss_fft_cpx out[FFT_SIZE + 1]; 338 - // Use the newest samples for FFT (they're at the end of the buffer) 339 - kiss_fftr(fftcfg, sampleBuf + AUDIO_BUFFER_SIZE - (FFT_SIZE * 2), out); 338 + // Align FFT and VQT to start from the same temporal position 339 + kiss_fftr(fftcfg, sampleBuf + AUDIO_BUFFER_SIZE - VQT_FFT_SIZE, out); 340 340 341 341 float peakValue = fPeakMinValue; 342 342 for (int i = 0; i < FFT_SIZE; i++)
+1 -1
src/ext/vqt.c
··· 263 263 // Copy audio data from the shared buffer 264 264 // sampleBuf is defined in fft.c as extern 265 265 extern float sampleBuf[]; 266 - // Use the newest samples for VQT (they're at the end of the buffer) 266 + // Align FFT and VQT to start from the same temporal position 267 267 #define AUDIO_BUFFER_SIZE (VQT_FFT_SIZE > (FFT_SIZE * 2) ? VQT_FFT_SIZE : (FFT_SIZE * 2)) 268 268 memcpy(vqtAudioBuffer, sampleBuf + AUDIO_BUFFER_SIZE - VQT_FFT_SIZE, VQT_FFT_SIZE * sizeof(float)); 269 269