how to play sound in step with the animation being shown on screen

23 views
Skip to first unread message

arvindikchari

unread,
Mar 5, 2012, 10:42:40 PM3/5/12
to gwt-v...@googlegroups.com
Hello,

I am trying to create a simple animation of a spinning bottle. As the bottle spins, I would like to play a sound accompanying the actual spinning action...I thought I should use the gwt-voices library for this, but how do I play the mp3 as an accompaniment to the animation?

And I want to play 3-4 different mp3 files at different stages of the animation...How do I do this?

 

Thanks,
Arvind.

Fred Sauer

unread,
Mar 26, 2012, 3:01:00 PM3/26/12
to gwt-v...@googlegroups.com
Timing the sound playback to an animation is not that hard. You'll get the highest reliability using a browser supporting the Web Audio API.

To sync animation to a sound you need to use the Web Audio API directly, rather than gwt-voices.

--
You received this message because you are subscribed to the Google Groups "gwt-voices" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-voices/-/TsBB4Nk-ql0J.
To post to this group, send email to gwt-v...@googlegroups.com.
To unsubscribe from this group, send email to gwt-voices+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-voices?hl=en.



--
Fred Sauer
fr...@allen-sauer.com
Reply all
Reply to author
Forward
0 new messages