Monday, July 7th, 2008
Scott has updated SoundManager2 with some nice new features.
The biggest is the update to support Flash 9, which brings with it:
play()to be called multiple times on a sound object, creating desired “chorus” effect. Will call
onfinish()multiple times, but
whileplaying()etc. are called only for the first “play instance” to avoid complications.
peakDatasound features (spectrum graph / “VU” meter-style data) available
- Sounds can be actually unloaded (“null” MP3 no longer needed to cancel loading of an MP3), but URL cannot be changed without destroying and recreating the related Flash sound object. The Flash 9 version does this to maintain API consistency.
Give it a download but remember the disclaimer that Scott himself puts on the software:
Not every button, link, element or paragraph on the web needs to zoom, move, change colour and be noisy, repetitive and annoying all at the same time. Use your own discretion!
Sites which automatically start playing background sound, and/or don’t have volume or mute controls are the kind of things you should avoid building. As a developer, gentle reader, you may eventually find yourself in such a situation. Please do your part in enhancing the web with sound if you use SM2, while at the same time keeping it audibly usable. :)
I want to create a shim that implements the Gears Audio API that is currently being talked about in the community:
- var audio = google.gears.factory.create('beta.audio');
- audio.src = 'http://blahblahblob.com/sampleaudio.wav';
Posted by Dion Almaer at 12:58 am