GWT developers, Want to add sound effects to your GWT apps?
The gwt-voices project <http://code.google.com/p/gwt-voices/> has long provided a simple API for adding sound to your GWT apps, which can be useful for business applications and games<http://allen-sauer.com/com.allen_sauer.gwt.game.hornetblast.HornetBlast/HornetBlast.html>alike. To date, gwt-voices provided audio support via the browser's native capabilities (remember the BGSOUND tag and its friends?) and, if installed, Adobe Flash (for MP3 files). This latest version of gwt-voices adds automatic support for HTML5 audio for modern browsers. Of course, the old native audio and Flash fallback functionality is still in place in case your users need it. To get started, add the gwt-voices jar<http://code.google.com/p/gwt-voices/downloads/list>to your project's classpath and inherit the gwt-voices module: <inherits name="com.allen_sauer.gwt.voices.gwt-voices" /> Then simply play() your sound: SoundController sc = new SoundController(); Sound sound = sc.createSound(Sound.MIME_TYPE_AUDIO_OGG_VORBIS, "mysoundfile.ogg"); // put the file in the 'war' directory sound.play(); The main project site, which includes a live demo<http://allen-sauer.com/com.allen_sauer.gwt.voices.demo.VoicesDemo/VoicesDemo.html>, is here: http://code.g oogle.com/p/gwt-voices/<http://code.google.com/p/gwt-voices/> Interested in seeing which MIME Types are supported by the various HTML5 capable browsers? Look no further than this crowd sourced data (your own user agent will be highlighted in yellow): http://gwt-voices.appspot.com/ Full set of Release Notes: http://code.google.com/p/gwt-voices/wiki/ReleaseNotes A more complete Getting Started guide: http://code.google.com/p/gwt-voices/wiki/GettingStarted Feedback is always welcome. Enjoy-- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 fre...@google.com -- http://groups.google.com/group/Google-Web-Toolkit-Contributors