cd_track()
Returns the current track number of a playing audio CD.
Returns:
Number of playing track, or 0 if no track is playing.
Edition:
C P
Example:
function wait_for_end_of_cd()
{
while (cd_track() != 0) { wait(1); } // wait until the CD is finished
...
}
See also:
cdaudio_vol, cd_start, cd_pause, cd_play