BASS.NET API for the Un4seen BASS Audio LibraryWaveFormGetVolumePoint Method (Int64)BASS.NET API for the Un4seen BASS Audio Library
Returns the level of a given volume point.

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

public float GetVolumePoint(
	long position
)

Parameters

position
Type: SystemInt64
The position (in bytes) of the volume point to get.

Return Value

Type: Single
The level of the volume point (0=silent, 1.0=maximum=0dB) or -1 if the volume points does not exist.
Remarks

This is the complementary method of AddVolumePoint(Int64, Single).

If your rendering method and your playback stream used different flags during creation (e.g. rendering was done using the BASS_DEFAULT flag whereas your playback stream uses BASS_SAMPLE_FLOAT) this method would return the position according to the rendering process, meaning the position would reflect a different value. In this case make sure to call SyncPlayback(Int32) before getting any markers. This will ensure that the position will be converted accordingly.

See Also

Reference