Crate dsf

Source
Expand description

DSF file utilities.

A DSF (DSD Stream File) is a high-resolution audio file which contains uncompressed DSD audio data along with information about how the audio data is encoded. It can also optionally include an ID3v2 tag which contains metadata about the music e.g. artist, album, etc.

§Examples

This example displays the metadata for the DSF file my/music.dsf.

 use dsf::DsfFile;
 use std::path::Path;

 let path = Path::new("my/music.dsf");

 match DsfFile::open(path) {
     Ok(dsf_file) => {
         println!("DSF file metadata:\n\n{}", dsf_file);
     }
     Err(error) => {
         println!("Error: {}", error);
     }
 }

Structs§

DataChunk
The data chunk contains the DSD sample data.
DsdChunk
The DSD chunk is the first chunk of a DSF file.
DsfFile
In memory representation of a DSF file.
FmtChunk
The fmt chunk contains information about the audio format.
Frames
Representation of the frames of an associated DsfFile.
InterleavedU32SamplesIter
Iterator which returns samples as a u32.

Enums§

ChannelType
The different channel formats possible for a DSF file.
Error
Errors provided by the dsf crate.