Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/audio_streams_conformance_test/src/sys/windows.rs
5394 views
1
// Copyright 2023 The ChromiumOS Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
use std::fmt;
6
7
use audio_streams::StreamSourceGenerator;
8
use serde::Serialize;
9
10
use crate::args::*;
11
use crate::error::Error;
12
13
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
14
pub enum StreamSource {}
15
16
#[derive(Copy, Clone, Debug, Serialize)]
17
pub enum StreamSourceParam {}
18
19
impl TryFrom<&str> for StreamSource {
20
type Error = Error;
21
22
fn try_from(_s: &str) -> Result<Self, Self::Error> {
23
todo!();
24
}
25
}
26
27
impl fmt::Display for StreamSource {
28
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
29
write!(f, "StreamSource")
30
}
31
}
32
33
pub(crate) fn create_stream_source_generator(
34
_stream_source: StreamSource,
35
_args: &Args,
36
) -> Box<dyn StreamSourceGenerator> {
37
todo!();
38
}
39
40