0
0

How do you detect when a track on a CD in finished playing?

  • You must to post comments
0
0

By checking that FSOUND_CD_GetTrackTime (very slow, read the manual) is < FSOUND_CD_GetTrackLength

  • You must to post comments
0
0

I found a more efficent way is to check within some timed loop against track being played vs a stored track that i was playing. For example when u start playing i set the current track to 1, and then in my loop i would check to see if the FSOUND_CD_GetTrack returned the same track number as my current var.

Its more efficent then checking against the track lenght. Also you might need to check against track being 0 (which sometimes comes up when the track is changing from one to another.

++Cire.

  • You must to post comments
0
0

Here’s an idea i had for checking for end of track (well sort of). I set the play mode to play once and when the track ends (checked by a loop), it calls for the next song (be it the next song or random). The problem is that I don’t know how to check to see if the track has stopped.

Also, if anyone has any better suggestions, please offer to tell me. This just seems the best way to do for my code.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.