[API function]
Allows the user to add a custom DSP unit to a stream.
FSOUND_DSPUNIT *F_API FSOUND_Stream_CreateDSP(
FSOUND_STREAM *stream,
FSOUND_DSPCALLBACK callback,
int priority,
int param
);
Parameters
stream |
The stream pointer to have a DSP attached to.
|
callback |
A standard FSOUND_DSPCALLBACK function callback pointer.
|
priority |
The priority, or position within the streams DSP chain to place the unit.
|
param |
A user parameter that gets passed back into the DSP callback.
|
Return Value
On success, a handle to the FSOUND_DSPUNIT is returned. All DSP functions are performable on this.
On failure, 0 is returned.
Remarks
The priority for a stream DSP unit is not related to the priorities specified in fmod.h.
The priorities are anything fom 0 onwards, and ALWAYS come after data is read/decoded for the stream.
See Also
FSOUND_DSP_Create
,
FSOUND_DSPCALLBACK
,
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.