Closed
Bug 1313058
Opened 7 years ago
Closed 7 years ago
SetValueCurveAtTime interpolation is incorrect
Categories
(Core :: Web Audio, defect, P2)
Core
Web Audio
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: dminor, Assigned: dminor)
References
Details
Attachments
(1 file)
For instance, if the curve is [1.0, 0.0] the values are interpolated from 1.0 to 0.0 over the first half of the duration, and are 0.0 for the second half of the duration. This is likely related to the old behaviour of jumping to the next value once we are closer to it than the current value.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
Sorry I messed this up the first time around :/. I also tried the [1.0, 0.5, 0.75, 0.25] curve on an 128 sample OfflineAudioContext buffer and compared results to Chrome to ensure that with the new changes we match what they are doing.
Assignee | ||
Comment 3•7 years ago
|
||
Try run here: https://treeherder.mozilla.org/#/jobs?repo=try&revision=51f9819f0b9f8d52216345ff96758729f60ae63f
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8805105 [details] Bug 1313058 - Fix SetValueCurveAtTime interpolation; https://reviewboard.mozilla.org/r/88954/#review89648 ::: dom/media/webaudio/compiledtest/TestAudioEventTimeline.cpp:108 (Diff revision 1) > ErrorResultMock rv; > > - float curve[] = { -1.0f, 0.0f, 1.0f }; > + uint32_t curveLength = 44100; > + float* curve = new float[curveLength]; > + for (uint32_t i = 0; i < curveLength; ++i) { > + curve[i] = sin(3.14159265358979 * i / float(curveLength)); M_PI ?
Attachment #8805105 -
Flags: review?(padenot) → review+
Comment hidden (mozreview-request) |
Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9bb46ea431c6 Fix SetValueCurveAtTime interpolation; r=padenot
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9bb46ea431c6
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•