I'm creating a multimedia project in Javascript and I'm having a heck of a time getting the Web Audio API to work in Opera 27 on any platform. Whenever I call decodeAudioData(...)
to try to decode MP3 audio data and create a Buffer, the error callback gets called with null
as the error. Nothing seems to work and the exact same code works in every other browser I've tried (IE, Safari, Chrome, Firefox). I've tried seeking for the MP3 frame header as per this helpful question and even that doesn't seem to help.
It seems like few people use the Web Audio API and even fewer use Opera, so searching around the web hasn't gotten me anywhere. Compatibility sites seem to indicate Opera supports MP3 decoding. Am I doing something subtle incorrectly? Does anyone have a workaround?
Here's a simple sample I threw together to exhibit this behavior; if anyone tried their hand at debugging it, I'd really appreciate it.