[Webkit-unassigned] [Bug 188834] New: AudioNode.connect does not return destination node

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 22 03:36:39 PDT 2018


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

            Bug ID: 188834
           Summary: AudioNode.connect does not return destination node
           Product: WebKit
           Version: Safari 11
          Hardware: All
                OS: iOS 11
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: j4kub.fiala at gmail.com

According to the Web Audio spec https://webaudio.github.io/web-audio-api/#dom-audionode-connect

AudioNode.connect "returns destination AudioNode object".

This does not seem to be the case in both iOS Safari 11 and desktop Safari 11, where AudioNode.connect returns `undefined`. It's problematic for code which uses chaining of .connect methods.

Steps to reproduce:

> const ac = new webkitAudioContext()
< undefined
> g1 = ac.createGain()
< GainNode {gain: AudioParam, context: webkitAudioContext, numberOfInputs: 1, numberOfOutputs: 1, channelCount: 2, …}
> g2 = ac.createGain()
< GainNode {gain: AudioParam, context: webkitAudioContext, numberOfInputs: 1, numberOfOutputs: 1, channelCount: 2, …}
> g3 = ac.createGain()
< GainNode {gain: AudioParam, context: webkitAudioContext, numberOfInputs: 1, numberOfOutputs: 1, channelCount: 2, …}
> g1.connect(g2).connect(g3)
< TypeError: undefined is not an object (evaluating 'g1.connect(g2).connect')

-- 
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/20180822/4bb710fa/attachment.html>


More information about the webkit-unassigned mailing list