pub struct BayAudioDetails {
pub format: u8,
pub channels: u8,
pub sample_rate: u32,
pub coding: Option<u8>,
}Expand description
The audio a bay signal report describes.
Fields§
§format: u8How the stream is encoded: 0 unknown, 1 L-PCM, 2 high bit rate.
channels: u8Channel count.
sample_rate: u32Sample rate in Hz.
coding: Option<u8>The coding type the source claims in its CTA-861 audio infoframe, and
None where it sent no infoframe at all.
The two are worth keeping apart: a source sending no infoframe leaves this field zero, and zero is also what a source claiming “refer to the stream header” writes into it.
Trait Implementations§
Source§impl Clone for BayAudioDetails
impl Clone for BayAudioDetails
Source§fn clone(&self) -> BayAudioDetails
fn clone(&self) -> BayAudioDetails
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 BayAudioDetails
Source§impl Debug for BayAudioDetails
impl Debug for BayAudioDetails
Source§impl Default for BayAudioDetails
impl Default for BayAudioDetails
Source§fn default() -> BayAudioDetails
fn default() -> BayAudioDetails
Returns the “default value” for a type. Read more
impl Eq for BayAudioDetails
Source§impl PartialEq for BayAudioDetails
impl PartialEq for BayAudioDetails
impl StructuralPartialEq for BayAudioDetails
Auto Trait Implementations§
impl Freeze for BayAudioDetails
impl RefUnwindSafe for BayAudioDetails
impl Send for BayAudioDetails
impl Sync for BayAudioDetails
impl Unpin for BayAudioDetails
impl UnsafeUnpin for BayAudioDetails
impl UnwindSafe for BayAudioDetails
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