Commit Graph

16 Commits

Author SHA1 Message Date
Matteo Cypriani 2e74951628 Audio data extraction 2016-12-06 21:32:51 -05:00
Matteo Cypriani 15c5a5fb04 Fix potential pre-gap bug in cue sheet
If an index #0 is present for a track but not for the next track, it
could be written for the following track (i.e. two tracks from where it
appeared), which would lead to an incoherent cue sheet.

In theory, this was a non-issue because in NRG, a track always has an
index #0, but you never know.
2016-12-06 19:31:27 -05:00
Matteo Cypriani 54b5967411 Write cue sheet to file 2016-12-06 19:27:07 -05:00
Matteo Cypriani 5973a06c1b Add basic cue sheet handling
The cue sheet is printed to stdout.
2016-12-06 18:06:13 -05:00
Matteo Cypriani 00ed1196d6 Improve rustdoc comments
Also, mark the binary "doc = false" in Cargo.toml.
2016-12-06 15:53:09 -05:00
Matteo Cypriani c3584042cc Open fd in main()
main() now opens the NRG image, instead of letting parse_nrg_metadata()
do it.

parse_nrg_metadata() was renamed read_nrg_metadata().
2016-12-06 15:06:45 -05:00
Matteo Cypriani 423aec0a63 Better handling of unknown chunks 2016-12-06 15:06:45 -05:00
Matteo Cypriani e2a41e6282 Move metadata-related modules into metadata 2016-12-06 15:06:45 -05:00
Matteo Cypriani 1a029d44a4 Split lib.rs into modules 2016-12-06 15:06:45 -05:00
Matteo Cypriani 8652b455be Add .gitignore 2016-12-06 15:06:35 -05:00
Matteo Cypriani 87b0527783 Handle MTYP chunk 2016-12-05 15:57:23 -05:00
Matteo Cypriani 6cad02d13c Handle SINF chunk 2016-12-05 15:43:21 -05:00
Matteo Cypriani c340f30493 Handle DAOX chunk 2016-12-05 15:43:21 -05:00
Matteo Cypriani 4b638a88d5 Don't use explicit &mut for fd 2016-12-05 13:08:45 -05:00
Matteo Cypriani 9c4a93e72e Add read_sized_string() 2016-12-05 12:52:31 -05:00
Matteo Cypriani f22f7fdbc3 Cue sheet display working
Initial commit with only cue sheet reading and display.
2016-12-05 12:29:03 -05:00