[Webkit-unassigned] [Bug 175412] New: WebAudio does not output sound

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 9 18:05:17 PDT 2017


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

            Bug ID: 175412
           Summary: WebAudio does not output sound
           Product: WebKit
           Version: Other
          Hardware: iPhone / iPad
                OS: iOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andrew at tokbox.com

No sound resulting from this code, also no error is thrown:

https://output.jsbin.com/mogudag

'use strict';

const handleError = (e) => {
  const pre = document.createElement('pre');
  pre.style.color = 'red';
  pre.textContent = `Error: ${e}\n.message: ${e.message}\n.stack: ${e.stack}`;
  document.body.appendChild(pre);
};

window.addEventListener('error', ({ error }) => handleError(error));
window.addEventListener('unhandledrejection', ({ reason }) => handleError(reason));

(async () => {
  try {
    await new Promise(resolve => window.addEventListener('load', resolve));

    const ctx = new (window.webkitAudioContext || window.AudioContext)();

    const oscNode = ctx.createOscillator();

    oscNode.connect(ctx.destination);
    oscNode.start();
  } catch (e) {
    handleError(e);
  }
})();

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170810/818c6252/attachment.html>


More information about the webkit-unassigned mailing list