Lines Matching defs:fftSize
70 /* Return a pointer to 1+(fftSize/2) spectrum magnitude values
74 fftSize points is used to compute the spectra, The overall signal
77 double* getAverageSpectrum(short* pcm, int numSamples, int fftSize,
79 if (numSamples < fftSize) return NULL;
80 int numFrames = 1 + ((2 * (numSamples - fftSize)) / fftSize);
81 int numMag = 1 + (fftSize / 2);
82 float* re = new float[fftSize];
83 float* im = new float[fftSize];
88 Window wind(fftSize);
90 int pow2 = ft.fftPow2FromWindowSize(fftSize);
95 for (int j = 0; j < fftSize; ++j) {
100 input_p += fftSize / 2;
135 int fftSize = 512; // must be a power of 2
138 int lowestBin = int(0.5 + (lowestFreq * fftSize / sample_rate));
139 int highestBin = int(0.5 + (highestFreq * fftSize / sample_rate));
149 fftSize, lowestBin, highestBin, &rms1);
153 fftSize, lowestBin, highestBin, &rms2);
154 int magSize = 1 + (fftSize/2);