Previous Topic Index Next Topic
[API function]

FSOUND_CD_GetTrackTime

Returns the current track time playing on a CD.

int F_API FSOUND_CD_GetTrackTime(
char drive
);

Parameters

drive the drive ID to use. 0 is the default CD drive. Using D or E in single quotes would be D: or E: for example.

Return Value

On success, the position of the current playing track in milliseconds is returned.
On failure, 0 is returned.

Remarks

This is easily one of the slowest functions in the FMOD API. Please use it sparingly.
It seems like it shouldnt take long, but because of windows MCI API it does, and not just a little bit of time, it takes a LOT.
It seems to poll the CD driver and cause a large delay upon completion of the command.
Different algorithms were used to try and emulate this function such as simply using a timer, but this was very inaccurate, especially when pausing/unpausing a lot.
___________________
Supported on the following platforms : Win32, Linux, Macintosh (OSX CFM Only)

See Also

FSOUND_CD_GetTrackLength , FSOUND_CD_SetTrackTime

This document copyright ©Firelight Technologies, Pty, Ltd, 1999-2002. All rights reserved.
Generated Thu Dec 15 17:31:28 2005 by SourceDoc v0.10, the automated source code documenter.