I threw in a simple effect in today’s comic where the computer is playing an acoustic guitar. Push the play, pause, and stop buttons above it, and you can control some real acoustic guitar music. What used to be a monumental task – putting sound effects in a web page – is now extremely simple.
It occurred to me that while I’ve mentioned using SoundManager2several times in the blog, I haven’t actually shown an example of its use since 2010! Things have changed since then, so it’s worth bringing up again.
I like SoundManager2 because it’s easy. I’ve been using it since before there was an HTML5 Audio specification, and have been very thankful for it. Abstraction solves all problems in computer science, and SoundManager2 provides a great abstraction on top of all the different ways to play sounds across different browsers on different types of devices. Sometimes it will use HTML5, sometimes it will revert to Flash (hopefully not often these days). But it just works.
Not that it’s too difficult to convert sound formats with Audacity, but it was an extra step that I would have preferred to avoid. But I digress…