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(
);

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. Due to time constraints it was
left the way it was.

See Also

FSOUND_CD_GetTrackLength

This document copyright ©Firelight Multimedia, 1999-2001. All rights reserved.
Generated Thu Sep 13 00:18:09 2001 by SourceDoc v0.10, the automated source code documenter.