In the helpfile for FMOD it is said, that FSound_CD_GetTrackTime takes a lot of time for execution.
I’ve tested it and on my machine it takes about 5 ms to execute, the cd playback is not affected by the function.
Now ask me, if this relatively short execution time is specific to my system and if I should search for other ways to let the user know at which point of the track he is, or if it is only the slowest function of FMOD but still fast enough to run without disturbing other functions on every system.
Thanks for any advice on this topic
- Anonymous asked 13 years ago
Yes, I you’re right, when the CD is not spinning, it takes several seconds (3 seconds on my system). I have not mind this case.
That’s the matter:
I’m writing a kind of CD player. So, the user wants to know the current position in the track (visualized by a progress bar or something like this).
Do you have any idea how to realize this without these ugly waiting periods? If I use a timer or a time counter in a second thread, this thread has to be running all the time while the CD is playing (not to mention the inaccuracy of this method on single-processor-systems). Since I would create an application that uses as less ressources as possible, I could not get used to this idea of another thread…
Please login first to submit.