Firelight Technologies FMOD Studio API
FMOD_DSP_FFT
Parameter types for the FMOD_DSP_TYPE_FFT dsp effect.
C/C++ Syntax
typedef enum {
FMOD_DSP_FFT_WINDOWSIZE,
FMOD_DSP_FFT_WINDOWTYPE,
FMOD_DSP_FFT_SPECTRUMDATA,
FMOD_DSP_FFT_DOMINANT_FREQ
} FMOD_DSP_FFT;
JavaScript Syntax
FMOD.DSP_FFT_WINDOWSIZE
FMOD.DSP_FFT_WINDOWTYPE
FMOD.DSP_FFT_SPECTRUMDATA
FMOD.DSP_FFT_DOMINANT_FREQ
Values
FMOD_DSP_FFT_WINDOWSIZE
(Type:int) - [r/w] Must be a power of 2 between 128 and 16384. 128, 256, 512, 1024, 2048, 4096, 8192, 16384 are accepted. Default = 2048.
FMOD_DSP_FFT_WINDOWTYPE
(Type:int) - [r/w] Refer to FMOD_DSP_FFT_WINDOW enumeration. Default = FMOD_DSP_FFT_WINDOW_HAMMING.
FMOD_DSP_FFT_SPECTRUMDATA
(Type:data) - [r] Returns the current spectrum values between 0 and 1 for each 'fft bin'. Cast data to FMOD_DSP_PARAMETER_DATA_TYPE_FFT. Divide the niquist rate by the window size to get the hz value per entry.
FMOD_DSP_FFT_DOMINANT_FREQ
(Type:float) - [r] Returns the dominant frequencies for each channel.
Remarks
Set the attributes for the spectrum analysis with FMOD_DSP_FFT_WINDOWSIZE and FMOD_DSP_FFT_WINDOWTYPE, and retrieve the results with FMOD_DSP_FFT_SPECTRUM and FMOD_DSP_FFT_DOMINANT_FREQ. FMOD_DSP_FFT_SPECTRUM stores its data in the FMOD_DSP_PARAMETER_DATA_TYPE_FFT. You will need to cast to this structure to get the right data.
See Also
- DSP::setParameterFloat
- DSP::getParameterFloat
- DSP::setParameterInt
- DSP::getParameterInt
- DSP::setParameterData
- DSP::getParameterData
- FMOD_DSP_TYPE
- FMOD_DSP_FFT_WINDOW
Version 1.10.03 Built on Feb 1, 2018