android - Synchronised sound effects in libgdx ..? -


is there way synchronize sound effects sprite sheet animation (consisting 30 frames).

all need play sound file (2 sec) synchronised explosion effects last 2 sec (i presume might change depending on devices, no way assign fixed time).

thanks

why duration of sound or duration of animation change depending on different devices? or did mean animation?

the device shouldn't play soundfile more fast or more slow. if load asset before need play() , there shouldn't delay. @ same moment reset animation time 0 , add deltatime of last frame animationtime. way, when lagging, might skip frames of animation , keep sound , animation synchronized.


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -