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
Parameters
- drive
- Type: SystemInt32
The drive... 0 = the first drive. - speed
- Type: SystemInt32
The speed, in KB/s.
Return Value
Type: BooleanIf 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 CODE | Description |
---|---|
BASS_ERROR_DEVICE | drive is invalid. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
See Also