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
The data chunk contains the DSD sample data.
The DSD chunk is the first chunk of a DSF file.
In memory representation of a DSF file.
The fmt chunk contains information about the audio format.
Iterator which returns samples as a u32
.
Enums
The different channel formats possible for a DSF file.
Errors provided by the dsf crate.