Commit Graph
17 Commits
Author SHA1 Message Date
Chris Pearce e14de67086 Bug 1388288 - Make dom/media/webaudio build non-Unified. r=padenot
MozReview-Commit-ID: Dihfqa9URpl
2017-08-08 11:38:02 +08:00
Phil Ringnalda 0eacb5b6ab Merge m-c to autoland 2016-11-03 20:02:24 -07:00
Dan Minor a81396c8c9 Bug 1313058 - Fix SetValueCurveAtTime interpolation; r=padenot
This interpolates over aCurveLength - 1 steps rather than over
aCurveLength steps as was done before.

Previously we would reach the final value on the curve before
the end of the specified duration. For example, on the curve
[1.0, 0.0] with duration 1000, we would interpolate from 1.0 to
0.0 by time 500 rather than time 1000. With these changes, we
don't reach 0.0 until time 1000, as expected.

This also updates TestSpecExample in TestAudioEventTimeline.cpp
to match the curve in the latest spec.

MozReview-Commit-ID: Cgs8csbRUMh
2016-10-26 10:33:20 -04:00
Nicholas Nethercote c1b0c7ceca Bug 1314556 - Convert TestAudioEventTimeline.cpp to a gtest. r=padenot.
This required moving template function ValidateEvent into the .h file to avoid
linking problems in xul-gtest.
2016-11-03 13:39:26 +11:00
Dan Minor 94be500c75 Bug 1265401 - Perform linear interpolation when computing the SetValueCurveAtTime events; r=padenot
MozReview-Commit-ID: IOiyq5a4P2A
2016-10-24 13:07:32 -04:00
Dan Minor a6130e8db5 Bug 1308427 - Allow a setTargetAtTime TimeConstant to be 0; r=padenot
MozReview-Commit-ID: 86YSuJDdks8
2016-10-20 11:10:19 -04:00
Dan Minor 8cb01e2a74 Bug 1281382 - Fix setTargetAtTime using incorrect starting value when earlier event is skipped; r=karlt
This updates mLastComputedValue when removing events during the call to
CleanupEventsOlderThan.

MozReview-Commit-ID: 1Veyv8kLIna
2016-08-12 14:57:19 -04:00
Dan Minor 156a09c0d3 Bug 1113634 - Update mLastComputedValue in AudioEventTimeline when skipping events of same time; r=karlt
We need to update mLastComputedValue while processing events that occur at the
same time rather than just skipping over them.

MozReview-Commit-ID: LuxSK6PHFHv
2016-08-08 16:00:35 -04:00
Sebastian Hengst 4cee7f7f3b Backed out changeset 74b1d84ac6aa (bug 1113634) for failing Cpp unit test TestAudioEventTimeline. r=backout 2016-08-11 17:30:54 +02:00
Dan Minor 6b5f00f512 Bug 1113634 - Update mLastComputedValue in AudioEventTimeline when skipping events of same time; r=karlt
MozReview-Commit-ID: LuxSK6PHFHv
2016-08-08 16:00:35 -04:00
Paul Adenot 6cddb57599 Bug 1273009 - Prune AudioParam events in the main thread when inserting new events. r=karlt
Running the test-case in the bug, and profiling under OSX using Instruments'
time profiler, the time spent in `AudioEventTimeline::ValidateEvent` was the
highest Web Audio API-related function. This patch makes it disappear from the
profile. We already use the same technique on the MSG thread to keep the number
of events low.

MozReview-Commit-ID: GJLPRWBh7nQ
2016-06-29 10:25:58 +02:00
Karl Tomlinson 6e6f65a48c bug 1213313 set mComputedValue for each tick so that SetTarget values are calculated correctly r=padenot
from mLastComputedValue.

MozReview-Commit-ID: 28lYzlarp8U
2016-06-21 18:02:06 +12:00
Karl Tomlinson 1b36ec3da0 bug 1257718 replace bailOut variable with more descriptive timeMatchesEventIndex r=padenot
with the new variable matching the loop exit status of interest.

MozReview-Commit-ID: 8xy5ipo4trp
2016-06-21 17:48:31 +12:00
Karl Tomlinson 47ad1a38fb bug 1257718 look for new events as time advances r=padenot
|bailout| is reset for each aTime, so that the appropriate events for that
time can be found.

The |eventIndex| loop is adjusted so that, when it is re-entered, it keeps
the current set of events if they are appropriate (instead of advancing
every time it is entered).

|previous| and |next| are now advanced even when passing the last event,
removing the special case when past all events.

MozReview-Commit-ID: 8ZSIzKKGQbd
2016-06-21 17:01:18 +12:00
Karl Tomlinson e03079f024 bug 1257718 introduce function-scope TimeOf() to simplify templated event time getter calls r=padenot
MozReview-Commit-ID: 7uKqlT2BpcS
2016-06-17 10:54:54 +12:00
Karl Tomlinson ef3a5ab893 bug 1257718 rename lastEventId to eventIndex r=padenot
This is not necessarily related to the last event and it is not the
previous event.

MozReview-Commit-ID: 6hhv184BHfg
2016-06-17 09:36:24 +12:00
Karl Tomlinson bb5285b401 bug 1257718 don't export implementation of complex timeline methods r=padenot
This limits recompilation required when modifying the methods, and
makes the public interface easier to read.

MozReview-Commit-ID: Lo2f7xmIdGu
2016-06-17 05:26:13 +12:00