Struct fidl_fuchsia_virtualaudio::Configuration
source · pub struct Configuration {
pub device_name: Option<String>,
pub manufacturer_name: Option<String>,
pub product_name: Option<String>,
pub unique_id: Option<[u8; 16]>,
pub fifo_depth_bytes: Option<u32>,
pub external_delay: Option<i64>,
pub supported_formats: Option<Vec<FormatRange>>,
pub clock_properties: Option<ClockProperties>,
pub ring_buffer_constraints: Option<RingBufferConstraints>,
pub gain_properties: Option<GainProperties>,
pub plug_properties: Option<PlugProperties>,
pub initial_notifications_per_ring: Option<u32>,
/* private fields */
}
Expand description
Configures a virtual audio device.
Fields§
§device_name: Option<String>
Device’s name. If not specified, a default name is used.
manufacturer_name: Option<String>
Device manufacturor’s name. If not specified, a default manufacturer name is used.
product_name: Option<String>
Device product’s. If not specified, a default product name is used.
unique_id: Option<[u8; 16]>
Device’s unique identifier, a 16 byte string. If not specified, a default ID is used.
fifo_depth_bytes: Option<u32>
FIFO depth in bytes. If not specified, defaults to an arbitrary amount.
external_delay: Option<i64>
External delay. If not specified, defaults to an arbitrary duration.
supported_formats: Option<Vec<FormatRange>>
Supported format ranges for this virtual audio device. If empty, supports only a 48kHz stereo int16 format by default.
clock_properties: Option<ClockProperties>
Configuration for the device’s clock. If not specified, use the domain of the monotonic clock.
ring_buffer_constraints: Option<RingBufferConstraints>
Constraints on the ring buffer. If not specified, there are no constraints.
gain_properties: Option<GainProperties>
Configuration of the device gain. If not specified, the device has unity gain and cannot mute, enable AGC, or change gain.
plug_properties: Option<PlugProperties>
Configuration of the device’s plug state. If not specified, the device starts plugged in, with plug notifications enabled, and is not hardwired.
initial_notifications_per_ring: Option<u32>
Initial notification frequency. This can be changed later with SetNotificationFrequency.
Implementations§
source§impl Configuration
impl Configuration
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Configuration
impl Debug for Configuration
source§impl Decode<Configuration> for Configuration
impl Decode<Configuration> for Configuration
source§impl Encode<Configuration> for &Configuration
impl Encode<Configuration> for &Configuration
source§impl Encode<Configuration> for Configuration
impl Encode<Configuration> for Configuration
source§impl PartialEq<Configuration> for Configuration
impl PartialEq<Configuration> for Configuration
source§fn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for Configuration
impl TypeMarker for Configuration
§type Owned = Configuration
type Owned = Configuration
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for Configuration
impl ValueTypeMarker for Configuration
§type Borrowed<'a> = &'a <Configuration as TypeMarker>::Owned
type Borrowed<'a> = &'a <Configuration as TypeMarker>::Owned
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more