-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement sub-sample accurate start for AudioBufferSourceNode. Previously, if the start time was between sample boundaries, we would start the output at the frame before the start time. This is actually incorrect because we haven't actually started yet. We should start the output at the next boundary, and interpolating the value based on the true start time and the sample boundary. Many tests needed to be updated. Basically for each test that needed to be changed, the sample rate is set to a power of two and all ABSN sources are updated to make sure the source starts exactly on a frame boundary. We also took the opportunity to adjust the error thresholds for the tests in case lower values could be used. Some additional notes for the tests: audiobuffersource-playbackrate-zero.html: Add new test to make sure sub-sample accurate start handles a zero playback rate. audiobuffersource-loop-points.html: add some code to save the actual output. This is needed because a new reference file is needed since the sample rate has changed. Also manually tested all of the modified tests with Firefox nightly. They all pass still (except for the new sub-sample test because Firefox doesn't do sub-sample accurate start/stop). Bug: 876917 Test: the-audiobuffersourcenode-interface/sub-sample-scheduling.html Change-Id: Ib13ba30eaa160cfd10739feabac961bf074ee309
- Loading branch information
Raymond Toy
authored and
Chrome-bot
committed
Sep 20, 2018
1 parent
c73ea25
commit 60878df
Showing
10 changed files
with
417 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.