4 releases
0.2.2 | May 5, 2022 |
---|---|
0.2.1 | Jan 29, 2021 |
0.2.0 | May 1, 2020 |
0.1.0 | Apr 21, 2020 |
#582 in Audio
100KB
720 lines
DSD Stream File
DSF (DSD Stream File) support in Rust. DSF files are a high-resolution audio format that contain lossless 1-bit audio stream in delta sigma modulation aka Direct Stream Digital (DSD). The format is intended for 1-bit DSD DACs.
This library is used by the
dsd
project which provides
executables for inspecting and playing DSF files.
References
lib.rs
:
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);
}
}
Dependencies
~1MB
~18K SLoC