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.
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.
- Anonymous answered 16 years ago
Please login first to submit.