this repo has no description
0
fork

Configure Feed

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

add FFT_DebugLog

alice d6d8be09 b3efa3f1

+18 -2
+15 -1
src/fftdata.c
··· 1 1 #include "fftdata.h" 2 + #include <stdarg.h> // For va_list 3 + #include <stdio.h> // for vprintf 4 + 5 + #define FFT_DEBUG 6 + 7 + void FFT_DebugLog(const char* format, ...) 8 + { 9 + #ifdef FFT_DEBUG 10 + va_list args; 11 + va_start(args, format); 12 + vprintf(format, args); 13 + va_end(args); 14 + #endif 15 + } 2 16 float fPeakMinValue = 0.01f; 3 17 float fPeakSmoothing = 0.995f; 4 18 float fPeakSmoothValue = 0.0f; ··· 6 20 float fftData[FFT_SIZE] = {0}; 7 21 float fftSmoothingData[FFT_SIZE] = {0}; 8 22 float fftNormalizedData[FFT_SIZE] = {0}; 9 - float fftNormalizedMaxData[FFT_SIZE] = {0}; 23 + float fftNormalizedMaxData[FFT_SIZE] = {0};
+3 -1
src/fftdata.h
··· 7 7 extern float fftData[FFT_SIZE]; 8 8 extern float fftSmoothingData[FFT_SIZE]; 9 9 extern float fftNormalizedData[FFT_SIZE]; 10 - extern float fftNormalizedMaxData[FFT_SIZE]; 10 + extern float fftNormalizedMaxData[FFT_SIZE]; 11 + 12 + void FFT_DebugLog(const char* format, ...);