Miles Sound System SDK 7.2a

AIL_redbook_open

The function AIL_redbook_open opens a Red Book CD-audio device.

HREDBOOK AIL_redbook_open(
  U32 which
);

In Parameters

which
specifies which CD device to open. Devices start at zero and increase for each additional CD-ROM that the system contains. You will almost always use zero.

Returns

A handle to the Red Book device, or NULL if the device couldn't be opened.

Discussion

This function just opens a channel to the device - it doesn't check to see if an audio CD is inserted. Use AIL_redbook_status to check for audio CDs.

Under DOS and MacOS 9, this function must not be invoked from an interrupt-based callback function.

Example files that use this function: Demo.C, AudioCD.C


Group: CD Audio (Redbook) Services
Related Functions: AIL_redbook_close, AIL_redbook_open_drive, AIL_redbook_open_volume, AIL_redbook_status
Related Basic Types: HREDBOOK, U32
Related FAQs: How do I loop a track off a CD?, How do I play a track off a CD?

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.