Bug 216790

Summary: AudioParam.exponentialRampToValueAtTime() does not properly deal with negative values
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, eric.carlson, ggaren, jer.noble, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://www.w3.org/TR/webaudio/#dom-audioparam-exponentialramptovalueattime
Bug Depends on: 216788    
Bug Blocks: 212611    
Attachments:
Description Flags
Patch eric.carlson: review+, ews-feeder: commit-queue-

Chris Dumez
Reported 2020-09-21 10:54:45 PDT
AudioParam.exponentialRampToValueAtTime() does not properly deal with negative values. The specification [1] says: "If V0 and V1 have opposite signs or if V0 is zero, then v(t) = V0 for T0 <= t < T1." Our implementation did not match the specification and would just special-case if either V0 or V1 was negative. [1] https://www.w3.org/TR/webaudio/#dom-audioparam-exponentialramptovalueattime
Attachments
Patch (6.39 KB, patch)
2020-09-21 10:59 PDT, Chris Dumez
eric.carlson: review+
ews-feeder: commit-queue-
Chris Dumez
Comment 1 2020-09-21 10:59:13 PDT
Chris Dumez
Comment 2 2020-09-21 14:17:52 PDT
Radar WebKit Bug Importer
Comment 3 2020-09-21 14:18:20 PDT
Note You need to log in before you can comment on or make changes to this bug.