Previous Topic Index Next Topic
[API function]

FSOUND_DSPCALLBACK

Callback definition for DSP units.

void *FSOUND_DSPCALLBACK(
void *originalbuffer,
void *newbuffer,
int length,
int param
);

Parameters

originalbuffer This is the pointer to the original buffer passed into the first DSP unit. This is useful if you want the clean, original data, and you have been returning new modified buffers for the DSP chain to use.
newbuffer This is a pointer to the previous DSP buffer that *it* returned. This buffer that this DSP returns will be passed into the newbuffer parameter of the NEXT unit in the DSP chain.
length The length of the buffer provided in SAMPLES, not bytes.
param A user data value specified in FSOUND_DSP_Create.

Return Value

Pointer to a sample buffer for the next DSP unit to use.

Remarks

You must return the buffer you work on, or it will not be fed through to the next DSP unit, and eventually the the system clip and copy unit, which makes the sound audible.
___________________
Supported on the following platforms : Win32, WinCE, Linux, Macintosh, XBox

See Also

FSOUND_DSP_Create , FSOUND_Stream_CreateDSP

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.