Mozilla is actively working on implementing the Web Audio API (originally introduced by Chrome), which should make it simpler to write cross-browser audio code. Large parts of this work have already landed in Firefox Nightly builds:
https://bugzilla.mozilla.org/show_bug.cgi?id=779297