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)

19 Branch
defect

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)

Attached file testcase
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.
Priority: -- → P1
Attached image actual screenshot
See Also: → 1213313
Rank: 19
Assignee: nobody → dminor
This depends upon the fix for Bug 1113634.
Attachment #8780647 - Flags: review?(karlt)
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-
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)
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+
Status: NEW → ASSIGNED
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
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Flags: in-testsuite?
Regressions: 1688721
Blocks: 1184057
No longer depends on: 1184057
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: