mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 20:19:07 +00:00
The first version of audio_streams_conformance_test. It is used to test if the implementation of audio_streams::AsyncPlaybackBufferStream is correct. This version only supports the playback test of NoopStream. It prints the following information for NoopStream. == Playback Source: NoopStream Channels: 2 Format: S16LE Sample rate: 48000 frames/s Buffer size: 240 frames Iterations: 10 Cold start latency: 3.89µs Records count: 10 [Step] min: 4.94 ms, max: 5.15 ms, average: 5.01 ms, standard deviation: 0.06 ms. [Linear Regression] rate: 47916.19 frames/s, standard error: 2.0 BUG=b:238038707 TEST=cargo run Change-Id: Ifca7dfd35473ffd75856a27e2c6aa1555eba7576 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3805090 Tested-by: Judy Hsiao <judyhsiao@google.com> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org> Commit-Queue: Chih-Yang Hsia <paulhsia@chromium.org> Auto-Submit: Judy Hsiao <judyhsiao@google.com>
19 lines
475 B
TOML
19 lines
475 B
TOML
[package]
|
|
name = "audio_streams_conformance_test"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2021"
|
|
|
|
[[bin]]
|
|
name = "audio_streams_conformance_test"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
argh = "*"
|
|
audio_streams = { path = "../../common/audio_streams" } # provided by ebuild
|
|
cros_async = { path = "../../cros_async" } # provided by ebuild
|
|
num = "*"
|
|
remain = "0.2"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "*"
|
|
thiserror = "1.0.20"
|