ttencate/jfxr

Crashes in WebKit and Firefox Nightlies due to WebAudio API issues

Closed this issue · 2 comments

The three offending lines:

Turns out the first one currently requires the BufferSize (at least in WebKit) and the latter two also require at least the when argument to be present.

Setting the buffer to 1024 and passing 0 as the first parameter to this.source.start() and this.source.stop() made it work in both browsers.

For reference:

Thank you so much for filing this before the nightlies see the light of day and break it for everyone! I mostly worked off of the WebAudio spec directly (http://www.w3.org/TR/webaudio/) which clearly mentions bufferSize as optional, as well as the when argument to start() and stop(). Sigh.

Forgot to say: another big THANK YOU for taking the trouble to debug this and find the solution!