Expand description
DFF file utilities.
A DFF (DFF File Format) 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.
This library allows you to read DFF file metadata, and provides a reference to the underlying file itself.It is up to the user to decide how to read the sound data, using metadata including data offset and audio length from the DffFile object to seek to and read the audio bytes from the underlying file.
Only supports ID3 tags that appear at the end of the file, not those found in the property chunk. DST is not supported. Mostly geared toward stereo and mono audio.
§Examples
This example displays the metadata for the DFF file
my/music.dff.
use dff_meta::DffFile;
use std::path::Path;
let path = Path::new("my/music.dff");
match DffFile::open(path) {
Ok(dff_file) => {
println!("DFF file metadata:\n\n{}", dff_file);
}
Err(error) => {
println!("Error: {}", error);
}
}Modules§
- model
- DFF File Model