pub struct DffFile { /* private fields */ }Implementations§
Source§impl DffFile
impl DffFile
Sourcepub fn open(path: &Path) -> Result<DffFile, Error>
pub fn open(path: &Path) -> Result<DffFile, Error>
Attempt to open and parse the metadata of DFF file in read-only mode. Sample data is not read into memory to keep the memory footprint small.
§Errors
This function will return an error if path does not exist or
is not a readable and valid DFF file.
Sourcepub fn get_dsd_data_offset(&self) -> u64
pub fn get_dsd_data_offset(&self) -> u64
Return the byte offset in the file where the DSD audio data starts.
Sourcepub fn get_audio_length(&self) -> u64
pub fn get_audio_length(&self) -> u64
Return the length of the DSD audio data in bytes.
Sourcepub fn get_num_channels(&self) -> Result<usize, Error>
pub fn get_num_channels(&self) -> Result<usize, Error>
Return the number of audio channels.
Sourcepub fn get_sample_rate(&self) -> Result<u32, Error>
pub fn get_sample_rate(&self) -> Result<u32, Error>
Return the sample rate in Hz.
Sourcepub fn get_form_chunk_size(&self) -> u64
pub fn get_form_chunk_size(&self) -> u64
Return the size of the FORM chunk in bytes
Sourcepub fn get_file_size(&self) -> Result<u64, Error>
pub fn get_file_size(&self) -> Result<u64, Error>
Return the total size of the DFF file in bytes
Sourcepub fn get_dff_version(&self) -> Result<u32, Error>
pub fn get_dff_version(&self) -> Result<u32, Error>
Return the DFF format version number.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DffFile
impl RefUnwindSafe for DffFile
impl Send for DffFile
impl Sync for DffFile
impl Unpin for DffFile
impl UnwindSafe for DffFile
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