BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_CD_SetSpeed Method (Int32, Int32)

BASS.NET API for the Un4seen BASS Audio Library
Sets the read speed of a drive in KB/s.

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

[DllImportAttribute("basscd")]
public static bool BASS_CD_SetSpeed(
	int drive,
	int speed
)

Parameters

drive
Type: SystemInt32
The drive... 0 = the first drive.
speed
Type: SystemInt32
The speed, in KB/s.

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).

To use a real-time speed multiplier, multiply it by 176.4 (and round up) to get the KB/s speed to use with this function, eg. "32x speed" = 32 * 176.4 = 5645.

ERROR CODEDescription
BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_UNKNOWNSome other mystery problem!

See Also

Reference