BASS.NET API for the Un4seen BASS Audio LibraryWaveFormSearchVolumePoint Method (Int64)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:

public int SearchVolumePoint(
	long position


Type: SystemInt64
The position (in bytes) 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.

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