this repo has no description
0
fork

Configure Feed

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

remove unneccessary(?) loop

alice 8782a486 02da3e7e

+1 -17
+1 -17
src/ext/vqt.c
··· 266 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 - 270 - // Check if we have any audio data 271 - float audioSum = 0.0f; 272 - for (int i = 0; i < VQT_FFT_SIZE; i++) 273 - { 274 - audioSum += fabs(vqtAudioBuffer[i]); 275 - } 276 - 277 - if (audioSum < 0.0001f) 278 - { 279 - // No audio data, set output to zero 280 - memset(vqtData, 0, sizeof(vqtData)); 281 - memset(vqtSmoothingData, 0, sizeof(vqtSmoothingData)); 282 - memset(vqtNormalizedData, 0, sizeof(vqtNormalizedData)); 283 - return; 284 - } 285 - 269 + 286 270 // Profiling variables 287 271 static double totalFftTime = 0.0; 288 272 static double totalKernelTime = 0.0;