pub struct SamplesInfo {
pub samples: u32,
pub channels: u32,
pub sample_rate: u32,
pub bits_per_sample: u32,
pub audio_form: FlacAudioForm,
}
Fields§
§samples: u32
- Number of samples per channel decoded from the FLAC frame
channels: u32
- Number of channels in the FLAC frame
sample_rate: u32
- The sample rate of the FLAC frame.
bits_per_sample: u32
- How many bits in an
i32
are valid for a sample. The decoder only excretes[i32]
for you. - For example, the value is 16, but you got a
[i32]
, which means eachi32
is in the range of -32768 to 32767, you can then just cast thei32
toi16
for your convenience.
audio_form: FlacAudioForm
- How are the audio data forms, audio frame array, or channel array.
Trait Implementations§
Source§impl Clone for SamplesInfo
impl Clone for SamplesInfo
Source§fn clone(&self) -> SamplesInfo
fn clone(&self) -> SamplesInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SamplesInfo
impl Debug for SamplesInfo
impl Copy for SamplesInfo
Auto Trait Implementations§
impl Freeze for SamplesInfo
impl RefUnwindSafe for SamplesInfo
impl Send for SamplesInfo
impl Sync for SamplesInfo
impl Unpin for SamplesInfo
impl UnwindSafe for SamplesInfo
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