opus_headers

Crates.ioopus_headers
lib.rsopus_headers
version0.1.2
sourcesrc
created_at2020-08-05 17:57:48.843236
updated_at2020-08-06 13:55:10.243858
descriptionParsing the headers of opus files.
homepagehttps://github.com/zaethan/opus_headers
repositoryhttps://github.com/zaethan/opus_headers
max_upload_size
id273280
size28,743
(zaethan)

documentation

README

Opus Header Parsing Library

Parsing of Opus Headers according to the specification.

Usage

use std::path::Path;
use opus_headers::parse_from_path; // or parse_from_read or parse_from_file

fn main() {
    let path = Path::new("/mnt/RamDisk/silence.opus");
    let headers = parse_from_path(path).unwrap();

    let comments = headers.comments.user_comments;
    for (tag, value) in &comments {
        println!("{}: {}", tag, value);
    }
}

License

As most Rust source, this is library is dual licensed under the Apache 2.0 and MIT license.

Commit count: 49

cargo fmt