BASS.NET API for the Un4seen BASS Audio LibraryWaveFormGetVolumeLevel Method (Double, Boolean, Double, Single)BASS.NET API for the Un4seen BASS Audio Library
Returns the volume level at the given position of the volume curve.

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

public float GetVolumeLevel(
	double position,
	bool reverse,
	ref double duration,
	ref float nextLevel
)

Parameters

position
Type: SystemDouble
The position (in seconds) of the volume point to get.
reverse
Type: SystemBoolean
, if to search in reverse direction - else .
duration
Type: SystemDouble
Returns the duration (in seconds) to the next volume point in bytes.
nextLevel
Type: SystemSingle
Returns the volume level at the next volume point.

Return Value

Type: Single
The volume level (0=silent, 1.0=maximum=0dB) at the given position.
Remarks

Note: This method always returns a volume level, even if the position does not reflect a volume point. In such case the volume level of the volume curve at this position will be returned. If no volume points have been defined at all this method will return 1.
See Also

Reference