pub struct DsfHeader {
pub total_file_size: u64,
pub metadata_offset: u64,
pub channel_type: u32,
pub channel_count: u32,
pub sample_rate: u32,
pub bits_per_sample: u32,
pub sample_count: u64,
pub block_size: u32,
pub data_chunk_size: u64,
}Expand description
The fixed-size DSF header: DSD chunk, fmt chunk and data chunk header.
Fields§
§total_file_size: u64Total file size as recorded in the header.
metadata_offset: u64Offset of the ID3v2 metadata chunk; 0 means no metadata.
channel_type: u32Channel type id (e.g. 2 = stereo).
channel_count: u32Number of channels.
sample_rate: u32Sampling frequency in Hz (e.g. 2_822_400).
bits_per_sample: u321 (LSB first) or 8 (MSB first).
sample_count: u64Samples per channel.
block_size: u32Block size per channel in bytes (4096 per spec).
data_chunk_size: u64Size of the data chunk including its 12-byte header.
Implementations§
Trait Implementations§
impl Eq for DsfHeader
impl StructuralPartialEq for DsfHeader
Auto Trait Implementations§
impl Freeze for DsfHeader
impl RefUnwindSafe for DsfHeader
impl Send for DsfHeader
impl Sync for DsfHeader
impl Unpin for DsfHeader
impl UnsafeUnpin for DsfHeader
impl UnwindSafe for DsfHeader
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