pub struct DsdSourceInfo {
pub channels: usize,
pub endianness: Endianness,
pub layout: FmtType,
pub block_size: u32,
pub sample_rate: u32,
pub audio_length: u64,
pub data_offset: u64,
pub tag: Option<Tag>,
}Expand description
Describes the native shape of a DsdSource’s audio data.
Fields§
§channels: usize§endianness: Endianness§layout: FmtType§block_size: u32Native (or suggested) block size in bytes per channel used when reading frames of audio data.
sample_rate: u32Native sample rate of the audio data, in Hz.
audio_length: u64Total length of the audio data, in bytes, across all channels.
data_offset: u64Byte offset within the container where DsdSource::reader begins
yielding data. Informational only (reader() already accounts for
it); useful for callers that want to sanity-check container-reported
lengths against the underlying file size.
tag: Option<Tag>ID3 tag associated with this source, if any.
Trait Implementations§
Source§impl Clone for DsdSourceInfo
impl Clone for DsdSourceInfo
Source§fn clone(&self) -> DsdSourceInfo
fn clone(&self) -> DsdSourceInfo
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 moreAuto Trait Implementations§
impl Freeze for DsdSourceInfo
impl RefUnwindSafe for DsdSourceInfo
impl Send for DsdSourceInfo
impl Sync for DsdSourceInfo
impl Unpin for DsdSourceInfo
impl UnsafeUnpin for DsdSourceInfo
impl UnwindSafe for DsdSourceInfo
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