BASS_CD_SetSpeed


Sets the read speed of a drive.

BOOL BASS_CD_SetSpeed(
    DWORD drive,
    DWORD speed
);

Parameters

driveThe drive... 0 = the first drive.
speedThe speed, in KB/s... -1 = optimal performace.

Return value

If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_UNKNOWNSome other mystery problem!

Remarks

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

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.

See also

BASS_CD_GetSpeed, BASS_CONFIG_CD_AUTOSPEED