CDA file format¶
CDA files contain a header (CD-Index mark) and records.
CDA header¶
| Field |
Format |
Length |
Description |
| Mark |
"CDA" |
3 |
Always equal to "CDA" for CDA files |
| Version |
byte |
1 |
Right now the only possible value is 0x01 |
CDA record¶
| Field |
Format |
Length |
Description |
| Offset |
long int |
4 |
Offset of the record in CDI file |
| Bitrate |
short |
2 |
Bitrate of audio file (kbit) |
| Frequency |
short |
2 |
Frequency of audio file |
| MPEG |
bit |
2 |
MPEG version |
| Layer |
bit |
2 |
Layer |
| Mode |
bit |
2 |
Mode |
| Copy |
bit |
1 |
Is a copy |
| Original |
bit |
1 |
Is original |
| Language |
byte |
1 |
Language ID |
| Duration |
short |
1 |
Duration |
| Title |
string |
128 |
The title of the song |
| Artist |
string |
64 |
The name of the artist |
| Album |
string |
96 |
The title of the album |
| Year |
short |
1 |
Release year |
| Genre |
byte |
1 |
Genre ID |
| Track ID |
byte |
1 |
Track number in album |