Miles Sound System SDK 7.2a

AIL_redbook_id

The function AIL_redbook_id returns an ID that will uniquely identify the CD currently inserted in the Red Book device.

U32 AIL_redbook_id(
  HREDBOOK hand
);

In Parameters

hand
specifies which CD device to query.

Returns

An MSS generated hash value for the CD.

Discussion

This function is useful when writing a CD-audio player to identify any CD that the user inserts.

This function generates the ID by hashing together all of the start and end offsets of each track, so the ID should be unique for every CD.

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


Group: CD Audio (Redbook) Services
Related Functions: AIL_redbook_track_info, AIL_redbook_tracks
Related Basic Types: HREDBOOK, U32

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