Closed
Bug 1281382
Opened 8 years ago
Closed 8 years ago
setTargetAtTime uses incorrect starting value when earlier event is skipped
Categories
(Core :: Web Audio, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: karlt, Assigned: dminor)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 1 obsolete file)
AudioEventTimeline assumes that the current value will be fetched for all
ticks, but this does not happen for processing blocks where the AudioParam is
not required.
Reporter | ||
Updated•8 years ago
|
Priority: -- → P1
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Rank: 19
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → dminor
Assignee | ||
Comment 3•8 years ago
|
||
This depends upon the fix for Bug 1113634.
Attachment #8780647 -
Flags: review?(karlt)
Reporter | ||
Comment 4•8 years ago
|
||
Reporter | ||
Comment 5•8 years ago
|
||
Comment on attachment 8780647 [details] [diff] [review]
Patch to update mLastComputedEvent when cleaning up "old" events.
See attachment 8781012 [details] for a problem with this.
mLastComputedValue should contain the value from the curve of the previous event at the time of the current event. It need only be calculated when the current event is a SetTarget.
Attachment #8780647 -
Flags: review?(karlt) → review-
Assignee | ||
Comment 6•8 years ago
|
||
This only updates mLastComputedValue if the next event is a SetTarget, and uses the time of the SetTarget event.
Attachment #8780647 -
Attachment is obsolete: true
Attachment #8781109 -
Flags: review?(karlt)
Reporter | ||
Comment 7•8 years ago
|
||
Comment on attachment 8781109 [details] [diff] [review]
Update mLastComputedEvent when cleaning up "old" events.
>+ mLastComputedValue = GetValuesAtTimeHelperInternal(mEvents[1].template Time<TimeType>(), &mEvents[0], &mEvents[1]);
Wrap to keep within 80 columns.
I suggest passing nullptr for aNext to make it clear that mEvents[1] has no other effect, but what you have still works, if you prefer.
Attachment #8781109 -
Flags: review?(karlt) → review+
Assignee | ||
Updated•8 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•8 years ago
|
||
Pushed by dminor@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/272a2ab0d60d
Fix setTargetAtTime using incorrect starting value when earlier event is skipped; r=karlt
Comment 10•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Reporter | ||
Updated•8 years ago
|
Flags: in-testsuite?
Updated•1 year ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•