#[non_exhaustive]pub struct WavPackProperties { /* private fields */ }Expand description
A WavPack file’s audio properties
Implementations§
Source§impl WavPackProperties
 
impl WavPackProperties
Sourcepub fn overall_bitrate(&self) -> u32
 
pub fn overall_bitrate(&self) -> u32
Overall bitrate (kbps)
Sourcepub fn audio_bitrate(&self) -> u32
 
pub fn audio_bitrate(&self) -> u32
Audio bitrate (kbps)
Sourcepub fn sample_rate(&self) -> u32
 
pub fn sample_rate(&self) -> u32
Sample rate (Hz)
Sourcepub fn channels(&self) -> u16
 
pub fn channels(&self) -> u16
Channel count
This is a u16 since WavPack supports “unlimited” streams
Sourcepub fn channel_mask(&self) -> ChannelMask
 
pub fn channel_mask(&self) -> ChannelMask
Channel mask
Sourcepub fn is_lossless(&self) -> bool
 
pub fn is_lossless(&self) -> bool
Whether the audio is lossless
Trait Implementations§
Source§impl Clone for WavPackProperties
 
impl Clone for WavPackProperties
Source§fn clone(&self) -> WavPackProperties
 
fn clone(&self) -> WavPackProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
 
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for WavPackProperties
 
impl Debug for WavPackProperties
Source§impl Default for WavPackProperties
 
impl Default for WavPackProperties
Source§fn default() -> WavPackProperties
 
fn default() -> WavPackProperties
Returns the “default value” for a type. Read more
Source§impl From<WavPackProperties> for FileProperties
 
impl From<WavPackProperties> for FileProperties
Source§fn from(input: WavPackProperties) -> Self
 
fn from(input: WavPackProperties) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WavPackProperties
 
impl PartialEq for WavPackProperties
impl Copy for WavPackProperties
impl Eq for WavPackProperties
impl StructuralPartialEq for WavPackProperties
Auto Trait Implementations§
impl Freeze for WavPackProperties
impl RefUnwindSafe for WavPackProperties
impl Send for WavPackProperties
impl Sync for WavPackProperties
impl Unpin for WavPackProperties
impl UnwindSafe for WavPackProperties
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