So I am working on a game that needs to have the music match up with the game play.
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)
thanks,
mr. skellington
Need help syncing music and frame rate
Started by Data-Fi, Jul 31 2010 01:11 AM
1 reply to this topic
#1
Posted 31 July 2010 - 01:11 AM
#2
Posted 31 July 2010 - 01:20 AM
You might get a better response in Advanced users or Novice- Dont repost it, report your main post and request a move.
I think a delta timing system would work- It keeps up to speed regardless of lag. Read more here: Delta Timing: Wikipedia
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











