pub struct V2ipAudioFormat {
pub sample_rate: u32,
pub channels: u8,
}Expand description
The sample rate and channel count a V2IP audio stream is decoded at.
Fill both in. The firmware header calls zero “use the default”, but the
path that applies a manual route substitutes nothing: it hands the pair to
the FPGA as it arrived, and the FPGA rejects a zero rate and takes the
whole switch down with it. V2ipAudioFormat::STANDARD is the pair the
header documents as the default.
Fields§
§sample_rate: u32Sample rate in Hz.
channels: u8Channel count.
Implementations§
Trait Implementations§
Source§impl Clone for V2ipAudioFormat
impl Clone for V2ipAudioFormat
Source§fn clone(&self) -> V2ipAudioFormat
fn clone(&self) -> V2ipAudioFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for V2ipAudioFormat
Source§impl Debug for V2ipAudioFormat
impl Debug for V2ipAudioFormat
Source§impl Default for V2ipAudioFormat
impl Default for V2ipAudioFormat
Source§fn default() -> V2ipAudioFormat
fn default() -> V2ipAudioFormat
Returns the “default value” for a type. Read more
Source§impl Display for V2ipAudioFormat
impl Display for V2ipAudioFormat
impl Eq for V2ipAudioFormat
Source§impl PartialEq for V2ipAudioFormat
impl PartialEq for V2ipAudioFormat
impl StructuralPartialEq for V2ipAudioFormat
Auto Trait Implementations§
impl Freeze for V2ipAudioFormat
impl RefUnwindSafe for V2ipAudioFormat
impl Send for V2ipAudioFormat
impl Sync for V2ipAudioFormat
impl Unpin for V2ipAudioFormat
impl UnsafeUnpin for V2ipAudioFormat
impl UnwindSafe for V2ipAudioFormat
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