BASS.NET API for the Un4seen BASS Audio LibraryUtilsDecodeAllData Method BASS.NET API for the Un4seen BASS Audio Library
Decodes all the available data of the given channel right away.

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

public static long DecodeAllData(
	int channel,
	bool autoFree
)

Parameters

channel
Type: SystemInt32
The channel handle who's channel data should be decoded (should typically be a decoding channel).
autoFree
Type: SystemBoolean
, if the channel should be freed (via BASS_StreamFree(Int32)) when all the data has been decoded.

Return Value

Type: Int64
The total number of bytes actually decoded.
Remarks

Internally BASS_ChannelGetData(Int32, IntPtr, Int32) will be called in a loop as long as the channel is active (BASS_ACTIVE_PLAYING). This method might be useful, if you want to quickly decode all the data of the channel to e.g. feed it through a DSP.

When using with a mixer channel (BASS_Mixer_StreamCreate(Int32, Int32, BASSFlag)) make sure to use the BASS_MIXER_END flag, since otherwise the mixer channel would never end.

See Also

Reference