[Webkit-unassigned] [Bug 122560] scriptProcessor Node not working on iOS (Safari/Chrome)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 11 08:30:46 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=122560


Jer Noble <jer.noble at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #10 from Jer Noble <jer.noble at apple.com>  2013-10-11 08:29:35 PST ---
There are still a number of problems with your example.  Namely, you have an assertion at line 33 of your most recent index.html, where setting 'context.sampleRate = 44100' fails because context is undefined.

You also need to recreate your AudioBufferSourceNode after calling stop(); each AudioBufferSourceNode can only be played once.  Please see the spec: <https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBufferSourceNode>

You are still calling init() from window.onload, which is not a user event, so this code will still not work in Mobile Safari.  Try something like this:

    function Start_Audio()
    {
        if (!context)
            init();
    ...


And remove the 'window.onload = init' line.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list