CD-DA Command Messages

┌───────────────────────────┬──────────────────────────────────────────────────┐
│Message                    │Description                                       │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_OPEN                   │Initializes the CD-DA device.                     │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_GETDEVCAPS             │Gets device capabilities.                         │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_GETTOC                 │Gets a table of contents structure for the        │
│                           │currently loaded disc.                            │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_CUE                    │Cues the device for minimum delay in playback.    │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_PLAY                   │Starts playing audio data from the disc. The      │
│                           │following optional action modifies MCI_PLAY:      │
│                           │-Specify start and stop positions on the disc     │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_PAUSE                  │Suspends the current playback action.             │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_RESUME                 │Resumes playing from a paused state, keeping      │
│                           │previously specified parameters in effect.        │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_SEEK                   │Moves to the specified position on the disc.      │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_SET                    │Sets audio attributes:                            │
│                           │-Identify the channels to be used                 │
│                           │-Set the volume                                   │
│                           │-Apply the audio attribute change over a period of│
│                           │time (fade)                                       │
│                           │-Enable or disable the audio output               │
│                           │Retract the tray and close the door, if possible  │
│                           │-Open the door and eject the tray, if possible    │
│                           │-Set the time format in milliseconds, MSF, TMSF,  │
│                           │or MMTIME                                         │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_SET_SYNC_OFFSET        │Specifies positional offsets.                     │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_STATUS                 │Receives status on items such as the following:   │
│                           │-Current volume setting                           │
│                           │-Length of the disc                               │
│                           │-Whether the media is present in the device       │
│                           │-Current mode of the device; for example,         │
│                           │"stopped"                                         │
│                           │-Current position in the media                    │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_INFO                   │Fills a user-supplied buffer with the following   │
│                           │information:                                      │
│                           │-Product name and model number of the current     │
│                           │audio device                                      │
│                           │-Serial number (UPC) of the current disc          │
│                           │-ID of the current disc                           │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_STOP                   │Stops playing the CD-DA device.                   │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_SET_CUEPOINT           │Sets a cue point.                                 │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_SET_POSITION_ADVISE    │Sets a position change notification request.      │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_CLOSE                  │Closes the CD-DA device.                          │
├───────────────────────────┼──────────────────────────────────────────────────┤
│MCI_CONNECTOR              │Enables or disables a connector, queries its state│
│                           │or identifies its type.                           │
└───────────────────────────┴──────────────────────────────────────────────────┘


[Back: Unique Considerations for Streaming]
[Next: CD Audio Connectors]