summaryrefslogtreecommitdiff
path: root/audio_streams/src/audio_streams.rs
diff options
context:
space:
mode:
authorFletcher Woodruff <fletcherw@chromium.org>2019-10-16 11:46:21 -0600
committerCommit Bot <commit-bot@chromium.org>2019-10-25 23:21:20 +0000
commit58df1c3f42565095f11c2bebe452128d69bbeb3d (patch)
tree7656de754321033b5664f459d4e1b20777a9706f /audio_streams/src/audio_streams.rs
parentc156f5fe51c89849e12660fa107ed673f1809802 (diff)
downloadadhd-58df1c3f42565095f11c2bebe452128d69bbeb3d.tar.gz
CRAS: cras_tests: Restructure arguments
In preparation for adding control functionality to cras_tests, restructure Command by making AudioOptions a parameter of the Command enum, e.g Command::Capture(AudioOptions). This way, a control command can be later added as Command::Control(ControlOptions). BUG=chromium:1008990 TEST=cargo test Change-Id: Ic341b78b2c6ea6e74baf776b95bb1134c0d4b2f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/1865832 Tested-by: Fletcher Woodruff <fletcherw@chromium.org> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org> Commit-Queue: Fletcher Woodruff <fletcherw@chromium.org>
Diffstat (limited to 'audio_streams/src/audio_streams.rs')
-rw-r--r--audio_streams/src/audio_streams.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio_streams/src/audio_streams.rs b/audio_streams/src/audio_streams.rs
index a27596db..f81e95df 100644
--- a/audio_streams/src/audio_streams.rs
+++ b/audio_streams/src/audio_streams.rs
@@ -44,7 +44,7 @@ use std::os::unix::io::RawFd;
use std::result::Result;
use std::time::{Duration, Instant};
-#[derive(Copy, Clone, Debug)]
+#[derive(Copy, Clone, Debug, PartialEq)]
pub enum SampleFormat {
U8,
S16LE,