Close

Download the code from GitHub : Current version 0.1.0

Wedge.js

Named after a wedge monitor speaker that you’d get onstage at a gig, the Wedge.js library is designed for people who want very simple audio playback – no fancy effects, only loading and playing and looping sounds. It’s targeted at cross-platform development, to make it easy to target both desktop and mobile HTML5 apps.

This means you can write your HTML5 application to play sound using Wedge.js, and if accelerated audio is available through Cordova, that will be used. Otherwise, it will fall back to Buzz! by Jay Salvat. This means you can develop on your desktop and still hear audio, while still getting the benefits of low latency when you compile.

Abstracting audio playback

Under the hood, it uses the LowLatencyAudio plugin for Cordova to provide much more responsive sound than the native HTML5 web audio API.

How Wedge.js abstracts audio playback in browsers and mobile devices

Find out more

If you’re looking to add audio to your HTML5-based mobile/desktop application, Wedge.js is an easy way to get started. Take a look at our examples page which shows how Wedge.js can give you audio in 2 lines of code!

About the author

Box UK

Box UK

Box UK's team of simply brilliant thinkers, consultants and application developers mastermind simply brilliant solutions to the world's toughest, performance-critical web and software assignments.

Comments

Johnny

Apr 17th, 2013

Would love to see this with a wedge.isEverythingPreloaded() = true/false and a wedge.isPreloaded('byte.mp3') = true/false. Anyway I can obtain this with the current release?

Box UK

Apr 17th, 2013

Hi Johnny, that's not included at present but perhaps that's something we could add? I'm reluctant to add too many features though as I want it to be super-simple!

Add Your Comment

Related content

We're hiring. Let's talk. View available roles