pub struct DsdSourceInfo {
pub channels: Option<usize>,
pub endianness: Option<Endianness>,
pub layout: Option<FmtType>,
pub block_size: Option<u32>,
pub sample_rate: Option<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 that only make sense for a known container format (channel count,
bit endianness, layout, block size, sample rate) are Option, so that
sources with no container metadata (e.g. a raw DSD file) can report
None for what they don’t know, rather than needing to invent a value.
Fields§
§channels: Option<usize>§endianness: Option<Endianness>§layout: Option<FmtType>§block_size: Option<u32>Native (or suggested) block size in bytes per channel used when reading frames of audio data.
sample_rate: Option<u32>Native 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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more