Previous Topic Index Next Topic
[API function]

FSOUND_DSP_GetSpectrum

Function to return a pointer to the current spectrum buffer. The buffer contains 512 floating
point values that represent each frequency band's amplitude for the current FMOD SoundSystem
mixing buffer. The range of frequencies covered by the spectrum is 1 to the nyquist frequency
or half of the output rate. So if the output rate is 44100, then frequencies provided are up
to 22050. (entry 511)

F_FLOAT_API * F_API FSOUND_DSP_GetSpectrum(
);

Return Value

A pointer to a buffer containing 512 floats.

Remarks

Note that hardware sounds, MIDI, and WMA/ASF/Internet streaming files do not register on the
spectrum graph as they are not run through FMODs DSP system.
Note that to use this you have to turn on the FSOUND FFT DSP unit. This is achieved by calling FSOUND_DSP_GetFFTUnit, then using FSOUND_DSP_SetActive to turn it on.
___________________
Supported on the following platforms : Win32, WinCE, Linux, Macintosh, XBox

See Also

FSOUND_DSP_GetFFTUnit , FSOUND_DSP_SetActive

This document copyright ©Firelight Technologies, Pty, Ltd, 1999-2002. All rights reserved.
Generated Fri Dec 20 16:31:08 2002 by SourceDoc v0.10, the automated source code documenter.