-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL makes DelayHandler inherit directly from AudioHandler instead of AudioBasicProcessorHandler. This CL should cause no functional change. This CL is in preparation for solving a spec compliance problem, but does *not* solve the spec compliance problem. It is just a refactor. The spec problem is as follows: the WebAudio spec requires that when the channel count changes, we keep the audio data in the delay lines and upmix or downmix it: https://webaudio.github.io/web-audio-api/#DelayNode However, the DelayHandler class inherits from AudioBasicProcessorHandler, which will always destroy and recreate the processing kernels whenever the channel count changes. This discards the delay line state. Bug: 1137007 Change-Id: I527b25e1785539475aee02f07549e93b94967569 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4789439 Commit-Queue: Michael Wilson <mjwilson@chromium.org> Reviewed-by: Hongchan Choi <hongchan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1185476}
- Loading branch information
Michael Wilson
authored and
Chromium LUCI CQ
committed
Aug 19, 2023
1 parent
33adb97
commit 31f15dc
Showing
5 changed files
with
194 additions
and
225 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
Oops, something went wrong.