Previous Topic Index Next Topic
[API function]

FSOUND_Stream_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
streaming 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)

float * F_API FSOUND_Stream_DSP_GetSpectrum(
FSOUND_STREAM *stream
);

Parameters

stream A pointer to the stream to have its spectrum graph returned.

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.

See Also

FSOUND_Stream_DSP_GetFFTUnit

This document copyright ©Firelight Multimedia, 1999-2001. All rights reserved.
Generated Thu Sep 13 00:18:09 2001 by SourceDoc v0.10, the automated source code documenter.