pub struct UacStreamConfig {
pub control_interface: u8,
pub streaming_interface: u8,
pub alt_setting: u8,
pub iso_out_ep: u8,
pub max_packet_size: u16,
pub channels: u8,
pub subframe_size: u8,
pub bit_resolution: u8,
pub sample_rate: u32,
pub freq_control_supported: bool,
}Expand description
解析された UAC 1.0 出力ストリーム構成。
Fields§
§control_interface: u8Audio Control インターフェース番号。
streaming_interface: u8Audio Streaming インターフェース番号。
alt_setting: u8等時性 OUT エンドポイントを持つ Alternate Setting 番号(通常 1 以上)。
iso_out_ep: u8等時性 OUT エンドポイント番号(1..=15、方向ビット 0x80 を除いた値)。
max_packet_size: u16等時性 OUT エンドポイントの最大パケットサイズ [byte]。
channels: u8チャネル数(1 = モノラル, 2 = ステレオ 等)。
subframe_size: u81 サンプルあたりのバイト数(16-bit PCM なら 2)。
bit_resolution: u8量子化ビット数(16-bit PCM なら 16)。
sample_rate: u32選択された標本化周波数 [Hz](通常 48000 または 44100)。
freq_control_supported: boolエンドポイントに対する SET_CUR(SAMPLING_FREQ_CONTROL) がサポートされているか。
Trait Implementations§
Source§impl Clone for UacStreamConfig
impl Clone for UacStreamConfig
impl Copy for UacStreamConfig
Source§impl Debug for UacStreamConfig
impl Debug for UacStreamConfig
impl Eq for UacStreamConfig
Source§impl PartialEq for UacStreamConfig
impl PartialEq for UacStreamConfig
impl StructuralPartialEq for UacStreamConfig
Auto Trait Implementations§
impl Freeze for UacStreamConfig
impl RefUnwindSafe for UacStreamConfig
impl Send for UacStreamConfig
impl Sync for UacStreamConfig
impl Unpin for UacStreamConfig
impl UnsafeUnpin for UacStreamConfig
impl UnwindSafe for UacStreamConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.