1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-27 22:19:24 +02:00
audacity/src/Spectrum.h
Paul-Licameli bdc2839112 Preliminaries for bug 900
Create WaveTrackCache as a utility class but don't use it anywhere yet.

The possible minor performance problem with effects is fixed by changes
in WaveTrack::GetBestBlockSize().
2015-05-26 20:02:37 -04:00

30 lines
719 B
C

/**********************************************************************
Audacity: A Digital Audio Editor
Spectrum.h
Dominic Mazzoni
**********************************************************************/
#ifndef __AUDACITY_SPECTRUM__
#define __AUDACITY_SPECTRUM__
#include "WaveTrack.h"
#include "FFT.h"
/*
This function computes the power (mean square amplitude) as
a function of frequency, for some block of audio data.
width: the number of samples
calculates windowSize/2 frequency samples
*/
bool ComputeSpectrum(const float * data, int width, int windowSize,
double rate, float *out, bool autocorrelation,
int windowFunc = eWinFuncHanning);
#endif