crosvm/audio_streams
Woody Chow 5b9d6d02fa audio_streams: Add [async_][write_playback/read_capture]_buffer
and trigger the callback function for the buffer automatically
without relying on Drop. There is no drop guarantee in rust.
Moreover, the callback function is also async in the async code.
We cannot block wait in the callback function.

BUG=b:192912354
TEST=cargo test

Cq-Depend: chromium:3007841
Change-Id: I57902cdb0e083f61349f7124602e957ffa84b3c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3062163
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Woody Chow <woodychow@google.com>
2021-08-03 10:09:58 +00:00
..
src audio_streams: Add [async_][write_playback/read_capture]_buffer 2021-08-03 10:09:58 +00:00
Cargo.toml Integrate audio_streams into crosvm, add stub libcras implementation 2021-07-29 05:59:42 +00:00
README.md audio_streams: Copy dir from adhd with commit history 2021-07-28 03:56:06 +00:00

Audio Server and Stream interfaces

The audio_streams crate provides a basic interface for playing audio. This will be used to enable playback to various audio subsystems such as Alsa and cras. To start, an empty playback example NoopStreamSource is provided.