-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement virtio-snd aaudio stream to support audio in android
This change introduces feature audio_aaudio on top of the support of virtio-snd-multiple-backend. The android_audio uses the Android AAudio NDK library to play audio. A libaaudio_stub is provided for building and testing on non-android environment. Bug=b:325930215 Test=Play Youtube video on panther Test=./tools/dev_container Test=cargo build Test=cargo build -F audio_aaudio,libaaudio_stub Test=./tools/run_tests Test=./tools/presubmit Change-Id: I7c275433bf94d4a347720ce0ffa9127ffcb66a1e Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5556704 Reviewed-by: Jiyong Park <[email protected]> Reviewed-by: Frederick Mayle <[email protected]> Auto-Submit: Mu-Le Lee <[email protected]> Commit-Queue: Mu-Le Lee <[email protected]> Reviewed-by: Chih-Yang Hsia <[email protected]>
- Loading branch information
Showing
10 changed files
with
502 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[package] | ||
name = "android_audio" | ||
version = "0.1.0" | ||
authors = ["The ChromiumOS Authors"] | ||
edition = "2021" | ||
|
||
[features] | ||
libaaudio_stub = [] | ||
|
||
[lib] | ||
path = "src/lib.rs" | ||
|
||
[dependencies] | ||
audio_streams = { path = "../common/audio_streams"} | ||
async-trait = "0.1.36" | ||
base = { path = "../base" } | ||
thiserror = "1.0.20" |
Oops, something went wrong.