Game Development Community

Can i get the exact elapsed time of an audio stream?

by Viren Thambidorai · in Technical Issues · 08/21/2007 (4:27 am) · 1 replies

Hey all,
i m making a dance game and for that i need to know the exact position of the audio file where it is playing currently. i tried alxGetStreamPosition(), but it is not giving me exact pos at every instance. it gives the position when there is a prominent difference between the last pos and the current one. that means it is giving me elapsed time after almost 1 or 1.25 secs. till that time it is repeating the previous value. is there any alternative for this. i need to know the elapsed time at almost every 50 milli seconds.
plz help me. i m using ogg vorbis.

#1
10/12/2007 (12:32 am)
You maybe need the VMPlayer resource which adds a lot of functionality like the one you need. Don't have the link at hand, but search for "VMPlayer".