BASS.NET API for the Un4seen BASS Audio Library

WaveFormGetVolumeLevel Method (Int64, Boolean, Int64, 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.17.5
Syntax

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

Parameters

position
Type: SystemInt64
The position (in bytes) of the volume point to get.
reverse
Type: SystemBoolean
, if to search in reverse direction - else .
duration
Type: SystemInt64
Returns the duration (in bytes) 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