BASS.NET API for the Un4seen BASS Audio LibraryBassFxBASS_FX_TempoGetRateRatio Method BASS.NET API for the Un4seen BASS Audio Library
Get the ratio of the resulting rate and source rate (the resampling ratio).

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

[DllImportAttribute("bass_fx.dll", CharSet = CharSet.Unicode)]
public static float BASS_FX_TempoGetRateRatio(
	int chan
)

Parameters

chan
Type: SystemInt32
Tempo stream (or source channel) handle.

Return Value

Type: Single
If successful, the resampling ratio is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

ERROR CODEDescription
BASS_ERROR_HANDLEchan is not valid.

Examples

Will return eg. 1.2 if the samplerate was increased by 20%:
VB
Dim ratio As Single = BassFx.BASS_FX_TempoGetRateRatio(streamFX)
float ratio = BassFx.BASS_FX_TempoGetRateRatio(streamFX);
See Also

Reference