BASS.NET API for the Un4seen BASS Audio Library

UtilsDetectCuePoints Method (Int32, Single, Double, Double, Double, Double, Int32)

BASS.NET API for the Un4seen BASS Audio Library
Detects the cue-in and -out points of a given decoding stream.

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

public static bool DetectCuePoints(
	int decodingStream,
	float blockSize,
	ref double cueInPos,
	ref double cueOutPos,
	double dBIn,
	double dBOut,
	int findZeroCrossing
)

Parameters

decodingStream
Type: SystemInt32
The decoding stream to analyze (should be created with the BASS_STREAM_PRESCAN flag).
blockSize
Type: SystemSingle
The block-size in seconds which will be used to scan the file (between 0.1 and 30 seconds).
cueInPos
Type: SystemDouble
Returns the cue-in position in seconds according to dBIn.
cueOutPos
Type: SystemDouble
Returns the cue-out position in seconds according to dBOut.
dBIn
Type: SystemDouble
The threshold in dB to be used to detect the cueInPos.
dBOut
Type: SystemDouble
The threshold in dB to be used to detect the cueOutPos.
findZeroCrossing
Type: SystemInt32
Position adjustment flag. 0=no adjustment, 1=move to zero-crossing sample to avoid clicks, 2=move to quiter sample (threshold/2) to avoid clicks.

Return Value

Type: Boolean
on success - else (Note: decodingStream must be a decoding stream and can not be 0).
Remarks

If findZeroCrossing is set to 1 the zero-crossing determination will only be performed within the last analyzed blockSize.
See Also

Reference