-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify playback parameter state tracking in DefaultAudioSink
This makes it easier to reason about some parts of the code and will eventually allow to easily switch between AudioProcessor- based on AudioSink-based speed adjustment. The current state saves the applicable playback parameters in separate variables depending on which speed adjustment path is used. Moreover, the AudioProcessor-based logic keeps a chain of pending parameter changes and we derive the last applicable one everytime we need the current parameters. After this change, this is simplified by - keeping a common value for playback parameters independent of the actual path we use for adjustment. - keeping the final ("current") parameters directly, instead of deriving it from a chain of yet to be applied parameters. PiperOrigin-RevId: 505097294
- Loading branch information
1 parent
5e44af0
commit 3d82846
Showing
1 changed file
with
57 additions
and
78 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