Need help syncing music and frame rate
Posted 31 July 2010 - 01:11 AM
I am using timers which set up the actions, and I have done the math between my framerate (30)
and the points (seconds) in the song I am using (mp3) so that the game should fallow the music,
but the game's frame rate varies (lags) and the music plays through smoothly, so that the music speeds ahead of the game.
the optimal thing to do would be to have no lag at all, but I would rather deal with that after synchronizing
the music rate with the frame rate.
any help? audio DLL's or anything. (This is the very last component to finish this project)
Posted 31 July 2010 - 01:20 AM
I think a delta timing system would work- It keeps up to speed regardless of lag. Read more here: Delta Timing: Wikipedia
Edited by Paper Cut Games, 31 July 2010 - 01:22 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users