3 releases

0.1.2 Aug 6, 2020
0.1.1 Aug 5, 2020
0.1.0 Aug 5, 2020

#584 in Audio

Download history 244/week @ 2024-01-11 197/week @ 2024-01-18 177/week @ 2024-01-25 245/week @ 2024-02-01 209/week @ 2024-02-08 169/week @ 2024-02-15 184/week @ 2024-02-22 296/week @ 2024-02-29 175/week @ 2024-03-07 252/week @ 2024-03-14 230/week @ 2024-03-21 243/week @ 2024-03-28 224/week @ 2024-04-04 193/week @ 2024-04-11 255/week @ 2024-04-18 235/week @ 2024-04-25

949 downloads per month
Used in 9 crates (2 directly)

MIT/Apache

17KB
361 lines

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.

No runtime deps