Miles Sound System SDK 7.2a

AIL_redbook_track_info

The function AIL_redbook_track_info returns the starting and ending millisecond offsets for a given track.

void AIL_redbook_track_info(
  HREDBOOK hand,
  U32 tracknum,
  U32 *startmsec,
  U32 *endmsec
);

In Parameters

hand
specifies which CD device to query.
tracknum
specifies the track number to get (the first track is number 1).

Out Parameters

startmsec
is a pointer to an integer that will receive the starting millisecond offset.
endmsec
is a pointer to an integer that will receive the ending millisecond offset.

Discussion

You can then use these offsets to play a specific track.

Note that the first track on the CD is number 1 - not zero!

You can pass in NULL for any parameters that you aren't interested in.

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_id, AIL_redbook_play, AIL_redbook_tracks
Related Basic Types: HREDBOOK, U32, void
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.