Finds the next position with a certain volume level.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
public static double DetectNextLevel( int decodingStream, float blockSize, double startpos, double dB, bool reverse, bool 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). - startpos
- Type: SystemDouble
The position in seconds where to start the search. - dB
- 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: DoubleThe position with the respective volume level (if the level could not be detected, then startpos will be returned).
Remarks
See Also