Changeset 267388 in webkit
- Timestamp:
- Sep 21, 2020, 6:30:35 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/webaudio/AudioParam/audioparam-update-value-attribute-expected.txt (modified) (3 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/webaudio/AudioParamTimeline.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r267386 r267388 1 2020-09-21 Chris Dumez <cdumez@apple.com> 2 3 Value returned by AudioParamTimeline::valuesForTimeRange() is sometimes incorrect for exponential ramps 4 https://bugs.webkit.org/show_bug.cgi?id=216811 5 6 Reviewed by Darin Adler. 7 8 Rebaseline test that is now passing. 9 10 * webaudio/AudioParam/audioparam-update-value-attribute-expected.txt: 11 1 12 2020-09-21 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/LayoutTests/webaudio/AudioParam/audioparam-update-value-attribute-expected.txt
r267253 r267388 31 31 PASS > [exponential] 32 32 PASS Initialize exponentialRamp(100, 0.05859375) with setValueAtTime(0.25, 0) 33 FAIL X exponentialRamp(100, 0.05859375) at frame 127 is not close to 0.3715826564497051 within a relative error of 7.4601e-7 (RelErr=0.0031257022818434277). Got 0.3727441132068634. assert_true: expected true got false 34 FAIL X exponentialRamp(100, 0.05859375) at frame 255 is not close to 0.5540208398098243 within a relative error of 7.4601e-7 (RelErr=0.003125543759278082). Got 0.5557524561882019. assert_true: expected true got false 35 FAIL X exponentialRamp(100, 0.05859375) at frame 383 is not close to 0.8260318010432445 within a relative error of 7.4601e-7 (RelErr=0.003124869750675969). Got 0.8286130428314209. assert_true: expected true got false 36 FAIL X exponentialRamp(100, 0.05859375) at frame 511 is not close to 1.2315936284435895 within a relative error of 7.4601e-7 (RelErr=0.003125614408747948). Got 1.235443115234375. assert_true: expected true got false 37 FAIL X exponentialRamp(100, 0.05859375) at frame 639 is not close to 1.8362765981977458 within a relative error of 7.4601e-7 (RelErr=0.0031255549856059697). Got 1.8420159816741943. assert_true: expected true got false 38 FAIL X exponentialRamp(100, 0.05859375) at frame 767 is not close to 2.737844421418366 within a relative error of 7.4601e-7 (RelErr=0.003125584974401164). Got 2.746401786804199. assert_true: expected true got false 39 FAIL X exponentialRamp(100, 0.05859375) at frame 895 is not close to 4.082060449525185 within a relative error of 7.4601e-7 (RelErr=0.0031256509741663416). Got 4.09481954574585. assert_true: expected true got false 40 FAIL X exponentialRamp(100, 0.05859375) at frame 1023 is not close to 6.086254347843924 within a relative error of 7.4601e-7 (RelErr=0.0031261474181545606). Got 6.105280876159668. assert_true: expected true got false 41 FAIL X exponentialRamp(100, 0.05859375) at frame 1151 is not close to 9.074459441421975 within a relative error of 7.4601e-7 (RelErr=0.0031256755520711168). Got 9.102823257446289. assert_true: expected true got false 42 FAIL X exponentialRamp(100, 0.05859375) at frame 1279 is not close to 13.529801655953424 within a relative error of 7.4601e-7 (RelErr=0.003125651633486093). Got 13.572091102600098. assert_true: expected true got false 43 FAIL X exponentialRamp(100, 0.05859375) at frame 1407 is not close to 20.172610173764248 within a relative error of 7.4601e-7 (RelErr=0.0031249766182691037). Got 20.23564910888672. assert_true: expected true got false 44 FAIL X exponentialRamp(100, 0.05859375) at frame 1535 is not close to 30.076878550809834 within a relative error of 7.4601e-7 (RelErr=0.0031254147731344167). Got 30.170881271362305. assert_true: expected true got false 45 FAIL X exponentialRamp(100, 0.05859375) at frame 1663 is not close to 44.843905452388015 within a relative error of 7.4601e-7 (RelErr=0.003125520752921088). Got 44.984066009521484. assert_true: expected true got false 46 FAIL X exponentialRamp(100, 0.05859375) at frame 1791 is not close to 66.86118883066644 within a relative error of 7.4601e-7 (RelErr=0.003125446691834669). Got 67.07015991210938. assert_true: expected true got false 47 FAIL X exponentialRamp(100, 0.05859375) at frame 1919 is not close to 99.68843094177858 within a relative error of 7.4601e-7 (RelErr=0.003124969255822428). Got 99.99995422363281. assert_true: expected true got false 33 PASS exponentialRamp(100, 0.05859375) at frame 127 is 0.3715826564497051 within an error of 7.4601e-7. 34 PASS exponentialRamp(100, 0.05859375) at frame 255 is 0.5540208398098243 within an error of 7.4601e-7. 35 PASS exponentialRamp(100, 0.05859375) at frame 383 is 0.8260318010432445 within an error of 7.4601e-7. 36 PASS exponentialRamp(100, 0.05859375) at frame 511 is 1.2315936284435895 within an error of 7.4601e-7. 37 PASS exponentialRamp(100, 0.05859375) at frame 639 is 1.8362765981977458 within an error of 7.4601e-7. 38 PASS exponentialRamp(100, 0.05859375) at frame 767 is 2.737844421418366 within an error of 7.4601e-7. 39 PASS exponentialRamp(100, 0.05859375) at frame 895 is 4.082060449525185 within an error of 7.4601e-7. 40 PASS exponentialRamp(100, 0.05859375) at frame 1023 is 6.086254347843924 within an error of 7.4601e-7. 41 PASS exponentialRamp(100, 0.05859375) at frame 1151 is 9.074459441421975 within an error of 7.4601e-7. 42 PASS exponentialRamp(100, 0.05859375) at frame 1279 is 13.529801655953424 within an error of 7.4601e-7. 43 PASS exponentialRamp(100, 0.05859375) at frame 1407 is 20.172610173764248 within an error of 7.4601e-7. 44 PASS exponentialRamp(100, 0.05859375) at frame 1535 is 30.076878550809834 within an error of 7.4601e-7. 45 PASS exponentialRamp(100, 0.05859375) at frame 1663 is 44.843905452388015 within an error of 7.4601e-7. 46 PASS exponentialRamp(100, 0.05859375) at frame 1791 is 66.86118883066644 within an error of 7.4601e-7. 47 PASS exponentialRamp(100, 0.05859375) at frame 1919 is 99.68843094177858 within an error of 7.4601e-7. 48 48 PASS exponentialRamp(100, 0.05859375) at frame 2047 is 100 within an error of 7.4601e-7. 49 49 PASS exponentialRamp(100, 0.05859375) at frame 2175 is 100 within an error of 7.4601e-7. … … 51 51 PASS exponentialRamp(100, 0.05859375) at frame 2431 is 100 within an error of 7.4601e-7. 52 52 PASS Gain .value attribute for exponentialRamp(100, 0.05859375) correctly updated during automation 53 FAIL < [exponential] 15 out of 21 assertions were failed. assert_true: expected true got false 53 PASS < [exponential] All assertions passed. (total 21 assertions) 54 54 PASS > [setTarget] 55 55 PASS Initialize setTargetAtTime(0, 0, 0.1) with setValueAtTime(0.25, 0) … … 98 98 PASS Gain .value attribute for setValueCurveAtTime([1,1.5,4], 0, 0.05859375) correctly updated during automation 99 99 PASS < [setValueCurve] All assertions passed. (total 21 assertions) 100 FAIL # AUDIT TASK RUNNER FINISHED: 1 out of 4 tasks were failed. assert_true: expected true got false 100 PASS # AUDIT TASK RUNNER FINISHED: 4 tasks ran successfully. 101 101 -
trunk/Source/WebCore/ChangeLog
r267386 r267388 1 2020-09-21 Chris Dumez <cdumez@apple.com> 2 3 Value returned by AudioParamTimeline::valuesForTimeRange() is sometimes incorrect for exponential ramps 4 https://bugs.webkit.org/show_bug.cgi?id=216811 5 6 Reviewed by Darin Adler. 7 8 AudioParamTimeline::valuesForTimeRangeImpl() always need to return the *last* value since this is 9 what will be used to update AudioParam::m_value to its latest value. We had a bug in our exponential 10 ramp processing causing value to be multiplied one extra time. 11 12 No new tests, rebaselined existing test. 13 14 * Modules/webaudio/AudioParamTimeline.cpp: 15 (WebCore::AudioParamTimeline::valuesForTimeRangeImpl): 16 1 17 2020-09-21 Chris Dumez <cdumez@apple.com> 2 18 -
trunk/Source/WebCore/Modules/webaudio/AudioParamTimeline.cpp
r267381 r267388 443 443 ++currentFrame; 444 444 } 445 446 // |value| got updated one extra time in the above loop. Restore it to the last computed value. 447 if (writeIndex >= 1) 448 value /= multiplier; 445 449 } 446 450 } else {
Note:
See TracChangeset
for help on using the changeset viewer.