BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_CD_GetSpeed Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the current read speed setting of a drive.

Namespace:  Un4seen.Bass.AddOn.Cd
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("basscd")]
public static int BASS_CD_GetSpeed(
	int drive
)

Parameters

drive
Type: SystemInt32
The drive... 0 = the first drive.

Return Value

Type: Int32
If successful, the read speed (in KB/s) is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

Divide the speed by 176.4 to get the real-time speed multiplier, eg. 5645 / 176.4 = "32x speed".

ERROR CODEDescription
BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_NOTAVAILThe read speed is unavailable.

See Also

Reference