BASS.NET API for the Un4seen BASS Audio Library

WaveFormDetectNextLevel Method (Double, Double, Boolean, Boolean)

BASS.NET API for the Un4seen BASS Audio Library
Finds the next position with a certain volume level.

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

public double DetectNextLevel(
	double startpos,
	double threshold,
	bool reverse,
	bool findZeroCrossing
)

Parameters

startpos
Type: SystemDouble
The position in seconds where to start the search.
threshold
Type: SystemDouble
The threshold in dB (e.g. -12.0dB) which should be searched.
reverse
Type: SystemBoolean
Search forward () or backward ().
findZeroCrossing
Type: SystemBoolean
If set to the returned position will be adjusted to the next resp. previous zero crossing in order to avoid clicks.

Return Value

Type: Double
The position with the respective volume level (if the level could not be detected, then startpos will be returned).
See Also

Reference