BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_CD_SetSpeed Method (Int32, Single)

BASS.NET API for the Un4seen BASS Audio Library
Sets the read speed of a drive.

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

public static bool BASS_CD_SetSpeed(
	int drive,
	float factor
)

Parameters

drive
Type: SystemInt32
The drive... 0 = the first drive.
factor
Type: SystemSingle
The speed factor multiplier, e.g. 32.0 for 32x.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

The speed is automatically restricted (rounded down) to what's supported by the drive, so may not be exactly what was requested. BASS_CD_GetSpeed(Int32) can be used to check that. The maximum supported speed can be retrieved via BASS_CD_GetInfo(Int32, BASS_CD_INFO).

ERROR CODEDescription
BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_UNKNOWNSome other mystery problem!

See Also

Reference