BASS_StreamFree

Frees a sample stream's resources, including any sync/DSP/FX it has.

BOOL BASS_StreamFree(
    HSTREAM handle
);

Parameters

handleThe stream handle.

Return value

If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILDevice streams (STREAMPROC_DEVICE) cannot be freed.