Commit 03a2457
[Webaudio]: Fix reverse interpolation and wrap around (Step 2)
This is the final incremental step (2/2) for negative playbackRate
support. It updates the linear interpolation path to correctly handle
backwards direction using a virtual_start_frame bound and correctly
calculates sub-sample rendering in reverse without rounding errors.
The previous optimization rounding grain_offset to an integer frame
is now bypassed when playbackRate is not strictly 1.0, preserving
the sub-sample position for correct backward playback tests.
Because all the expected WPT failures for negative playback rates
have now been resolved, the -expected.txt baseline file is deleted.
Bug: 40719652
Change-Id: Icac5f0ab9697bb6e198ecd237b1e7e22f4edd870
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7879375
Commit-Queue: Mahesh Kannan <kmaheshb@google.com>
Reviewed-by: Michael Wilson <mjwilson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1651112}1 parent f87a484 commit 03a2457
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- webaudio/the-audio-api/the-audiobuffersourcenode-interface
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments