1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-12 14:11:10 +02:00
audacity/src/Spectrum.h
Paul Licameli 406b23cae7 More uses of AUDACITY_DLL_API...
... in many places where the function call will later need to be between
modules (or libraries, or the executable) and the annotation will be a necessity
to keep the linkage working on Windows.

That's all that this sweeping commit does.
2021-05-10 10:46:55 -04:00

30 lines
716 B
C

/**********************************************************************
Audacity: A Digital Audio Editor
Spectrum.h
Dominic Mazzoni
**********************************************************************/
#ifndef __AUDACITY_SPECTRUM__
#define __AUDACITY_SPECTRUM__
#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
*/
AUDACITY_DLL_API
bool ComputeSpectrum(const float * data, size_t width, size_t windowSize,
double rate, float *out, bool autocorrelation,
int windowFunc = eWinFuncHann);
#endif