this repo has no description
0
fork

Configure Feed

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

more cleanup

alice dff0fee6 8782a486

+1 -13
+1 -13
src/ext/vqt.c
··· 146 146 for (int i = 0; i < 16; i++) 147 147 { 148 148 float freq = testFreqs[i]; 149 - // Find closest VQT bin 150 - int closestBin = 0; 151 - float minDiff = fabs(centerFreqs[0] - freq); 152 - for (int j = 1; j < VQT_BINS; j++) 153 - { 154 - float diff = fabs(centerFreqs[j] - freq); 155 - if (diff < minDiff) 156 - { 157 - minDiff = diff; 158 - closestBin = j; 159 - } 160 - } 161 149 162 150 // Calculate Q values using 8K-optimized function 163 151 float designQ; ··· 266 254 // Align FFT and VQT to start from the same temporal position 267 255 #define AUDIO_BUFFER_SIZE (VQT_FFT_SIZE > (FFT_SIZE * 2) ? VQT_FFT_SIZE : (FFT_SIZE * 2)) 268 256 memcpy(vqtAudioBuffer, sampleBuf + AUDIO_BUFFER_SIZE - VQT_FFT_SIZE, VQT_FFT_SIZE * sizeof(float)); 269 - 257 + 270 258 // Profiling variables 271 259 static double totalFftTime = 0.0; 272 260 static double totalKernelTime = 0.0;