BASS.NET API for the Un4seen BASS Audio Library

BassBASS_FXReset Method

BASS.NET API for the Un4seen BASS Audio Library
Resets the state of an effect or all effects on a channel.

Namespace:  Un4seen.Bass
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bass")]
public static bool BASS_FXReset(
	int handle
)

Parameters

handle
Type: SystemInt32
The effect or channel handle... a HFX, HSTREAM, HMUSIC, or HRECORD.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

Call this function e.g. after changing the position or when you pause a channel or when a stream stalls to avoid clicks when resuming.

This function flushes the internal buffers of the effect(s). Effects are automatically reset by BASS_ChannelSetPosition(Int32, Int64, BASSMode), except when called from a "mixtime" SYNCPROC.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_UNKNOWNSome other mystery problem!

See Also

Reference