BASS_SampleFree

Frees a sample's resources.

BOOL BASS_SampleFree(
    HSAMPLE handle
);

Parameters

handleThe sample 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.

Remarks

This function also frees all of the sample's channels and streams that have been created by BASS_SampleGetChannel.

See also

BASS_SampleCreate, BASS_SampleLoad