pub struct AudioInputFormat { /* private fields */ }Expand description
The format of the audio a FrameSync is receiving, as reported by
FrameSync::audio_input_format.
Both values are positive. The sample rate is at most i32::MAX, so
FrameSyncAudioRequest::capture_at accepts it. This is a plain value: it
is Copy, Send and Sync, and holds no SDK resource.
Implementations§
Source§impl AudioInputFormat
impl AudioInputFormat
Sourcepub fn sample_rate(&self) -> u32
pub fn sample_rate(&self) -> u32
The incoming audio’s sample rate in Hz: positive.
Sourcepub fn num_channels(&self) -> u32
pub fn num_channels(&self) -> u32
The incoming audio’s channel count: positive.
Trait Implementations§
Source§impl Clone for AudioInputFormat
impl Clone for AudioInputFormat
impl Copy for AudioInputFormat
Source§impl Debug for AudioInputFormat
impl Debug for AudioInputFormat
impl Eq for AudioInputFormat
Source§impl Hash for AudioInputFormat
impl Hash for AudioInputFormat
Source§impl PartialEq for AudioInputFormat
impl PartialEq for AudioInputFormat
impl StructuralPartialEq for AudioInputFormat
Auto Trait Implementations§
impl Freeze for AudioInputFormat
impl RefUnwindSafe for AudioInputFormat
impl Send for AudioInputFormat
impl Sync for AudioInputFormat
impl Unpin for AudioInputFormat
impl UnsafeUnpin for AudioInputFormat
impl UnwindSafe for AudioInputFormat
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