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 long DetectNextLevel( long startpos, double threshold, bool reverse, bool findZeroCrossing )
Parameters
- startpos
- Type: SystemInt64
The position in bytes 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: Int64The position with the respective volume level (if the level could not be detected, then startpos will be returned).
See Also