Playing a Compact Disc

Before issuing a play command, suitable media should be present in the CD drive. The following status command will return TRUE if the disc contains CD-DA tracks that can be played by the CD audio device:

status mycd media present wait

The CD audio device operates only on discs that contain CD-DA tracks. If a disc contains no CD-DA tracks, then the MCIERR_INVALID_MEDIA error can be returned on any command that requires a CD-DA track format in order to complete. Example commands include play, seek, and the media present function of the status command.

Other pertinent information regarding the CD audio device can be obtained using the status command: