[Webkit-unassigned] [Bug 175112] New: AudioParam.setValueCurveAtTime should use linear interpolation, not nearest neighbor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 2 20:00:39 PDT 2017


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

            Bug ID: 175112
           Summary: AudioParam.setValueCurveAtTime should use linear
                    interpolation, not nearest neighbor
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit.org at ricciadams.com

Based on testing and a brief code examination of AudioParamTimeline.cpp, AudioParam.setValueCurveAtTime is performing nearest neighbor sampling for missing values, rather than linear interpolation.

Per the WebAudio specification, linear interpolation should be used:
https://webaudio.github.io/web-audio-api/#widl-AudioParam-setValueCurveAtTime-AudioParam-sequence-float--values-double-startTime-double-duration

Chrome 46+ and Firefox use linear interpolation.

My test case involved making a Float32 array with 2 values: 1.0 and 0.0. I then used this on a GainNode to perform a fadeout. Expected behavior was a fadeout, actual behavior was immediate silence.

-- 
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/20170803/1bd7496b/attachment.html>


More information about the webkit-unassigned mailing list