BASS.NET API for the Un4seen BASS Audio LibraryWaveFormSearchVolumePoint Method (Double)BASS.NET API for the Un4seen BASS Audio Library
Searches for a certain volume point.

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

public int SearchVolumePoint(
	double position
)

Parameters

position
Type: SystemDouble
The position (in seconds) of the volume point to search.

Return Value

Type: Int32
If the position is present the zero-based index will be returned; otherwise, a negative number, which is the bitwise complement of the index of the next element that is larger than value or, if there is no larger element, the bitwise complement of Count.
Examples

// return the exact or next volume point int startIdx = wf.SearchVolumePoint(pos); if (startIdx < 0) startIdx = ~startIdx;
See Also

Reference