Previous Topic Index Next Topic
[API function]

FSOUND_DSP_GetBufferLength

Returns the buffer lenth passed by the DSP system to DSP unit callbacks, so you can allocate memory etc
using this data.

int F_API FSOUND_DSP_GetBufferLength(
);

Return Value

The size of the DSP unit buffer in SAMPLES (not bytes).

Remarks

Remember this is samples not bytes. To convert to bytes you
will have to multiply by 4 for mmx mixers, 8 for other mixers.
(a stereo 16bit sample = 4 bytes, and a stereo 32bit sample (ie fpu) = 8 bytes)

See Also

FSOUND_DSP_Create , FSOUND_DSP_GetBufferLengthTotal

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.