Synchronized sound and animation

hi,



With JML, I would like to know if it's possible to synchronized sound ogg with image ? and how ? if you have an example ?



Thanks

Ld

Theres examples for everything including sound in the source of JME2, see http://jmonkeyengine.googlecode.com

You have a timestamp for all your images, then depending on the current image being displayed, you check if the current soundtrack time is close to the timestamp, if not, you rewind/fastforward the audio to the timestamp of the image. This might cause skippy sound so you might want to implement frameskip instead, which is the same thing except the video is synced to the current audio time instead of vice versa.