Thanks to visit codestin.com
Credit goes to github.com

Skip to content

madmaid/tochri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tochri

WORKING IN PROGRESS Compact Disc TOC file Parser written in Rust

What is this

parses TOC file generated by CD ripper program. this helps you to access meta-datum like:

  • cue time of track
  • length of each tracks
  • number of source channels

Installation

add this to your Cargo.toml:

[dependencies]
tochri = {git = "https://github.com/madmaid/tochri.git"}

Example

extern crate tochri;

fn main() {
    let text = r#"
CD_DA

CATALOG "0000000000000"

// Track 1
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
FILE "data.wav" 0 03:41:65


// Track 2
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
FILE "data.wav" 03:41:65 06:20:35
"#;
    tochri::parse(text)

}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Compact Disc TOC Parser written in Rust

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages