Obsolete CD Functions

These functions are for dealing with the Windows CD reader.

Function List:

FunctionDescription
cd_initMust be called before using the other functions. Should also be called when a CD is changed (or simply from time to time).
cd_present Returns whether a CD is present in the default CD drive.
cd_numberReturns the number of tracks on the CD.
cd_playing Returns whether the CD is playing.
cd_pausedReturns whether the CD is paused or stopped.
cd_trackReturns the number of the current track (1=the first).
cd_lengthReturns the length of the total CD in milliseconds.
cd_track_lengthReturns the length of track n of the CD in milliseconds.
cd_positionReturns the current position on the CD in milliseconds.
cd_track_positionReturns the current position in the track being played in milliseconds.
cd_playTells the CD to play tracks first until last. If you want to play the full CD give 1 and 1000 as arguments.
cd_stopStops playing
cd_pausePauses the playing.
cd_resumeResumes the playing.
cd_set_positionSets the position on the CD in milliseconds.
cd_set_track_positionSets the position in the current track in milliseconds.
cd_open_doorOpens the door of the CD player
cd_close_doorCloses the door of the CD player

The following function has also been removed:

FunctionDescription
MCI_commandThis functions sends the command string to the Windows multimedia system using the Media Control Interface (MCI). It returns the return string. You can use this to control all sorts of multimedia devices. See the Windows documentation for information in how to use this command. For example MCI_command('play cdaudio from 1') plays a CD (after you have correctly initialized it using other commands). This function is only for advanced use!

Why These Are Obsolete

These are Windows only functions and no longer applicable to any other device.


Back: Obsolete Functions
Next: Display Functions

© Copyright YoYo Games Ltd. 2018 All Rights Reserved