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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -