crosvm/common/audio_streams
Judy Hsiao 8e1ea42363 audio_streams: Add latency_bytes to AsyncBufferCommit and BufferCommit trait
Add latency_bytes to the AsyncBufferCommit and the BufferCommit trait
to allow virtio sound device to report the audio latency from the
virtio_snd_pcm_status.

BUG=b:269989582
TEST=play Audio Video Sync Test video from the ARCVM youtube app.

Change-Id: I9415933ed1bd8e3b326fe2c5c73a835ed96dff02
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4273577
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
Commit-Queue: Chih-Yang Hsia <paulhsia@chromium.org>
Auto-Submit: Judy Hsiao <judyhsiao@google.com>
2023-03-08 12:15:45 +00:00
..
src audio_streams: Add latency_bytes to AsyncBufferCommit and BufferCommit trait 2023-03-08 12:15:45 +00:00
Cargo.toml Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
README.md docs: Use mdformat to format markdown files 2022-01-27 21:29:11 +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.