BASS.NET API for the Un4seen BASS Audio LibraryUtilsDetectCuePoints Method (String, 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 audio file.

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

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

Parameters

filename
Type: SystemString
The audio file to analyze.
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 .
Remarks

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

Reference