Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL moves all AAudio API calls into a wrapper class. This should make it easier to reason about AAudioOutputStream by hiding away details behind a simple interface. Notably, AAudioOutputStream no longer needs to know the nuances of the destruction logic. There are a few opportunistically attempts to to simplify some logic in this CL. The most notable is that we clear the AudioSourceCallback* immediately before requesting the AAudioStream's stop, instead of immediately after. The AAudioStreamWrapper will be re-used to add input support in a follow up CL. Bug: 1439668 Change-Id: I97f70871da61dac1757491ce8ac9236bda13576b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4547118 Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Cr-Commit-Position: refs/heads/main@{#1146805}
- Loading branch information