1 unstable release

Uses old Rust 2015

0.1.0 Sep 14, 2016

#5 in #sector

Download history 992/week @ 2023-12-05 1113/week @ 2023-12-12 1033/week @ 2023-12-19 846/week @ 2023-12-26 878/week @ 2024-01-02 1126/week @ 2024-01-09 962/week @ 2024-01-16 1400/week @ 2024-01-23 1261/week @ 2024-01-30 1715/week @ 2024-02-06 1329/week @ 2024-02-13 1422/week @ 2024-02-20 1127/week @ 2024-02-27 1856/week @ 2024-03-05 1472/week @ 2024-03-12 1539/week @ 2024-03-19

6,315 downloads per month
Used in 2 crates

ISC license

11KB
178 lines

A CD+G parser

This documentation is probably best read alongside CD+G Revealed

The CD+G format is very closely tied to the details of how compact discs store audio; it's intended to be stored in the subchannel data alongside normal Red Book audio. For the purposes of consuming this data from a .cdg file using this library, all that it is important to know is that the file is divided into sectors of 96 bytes, each of which represents 1/75th of a second.

The CD+G display model is a 300x216-pixel indexed color framebuffer divided into 6x12-pixel tiles, with a 16-color palette. The outermost cell on each side (i.e., the top and bottom 12 rows and the left and right 6 columns) are drawn a solid "border color" rather than drawn from the framebuffer.

No runtime deps