Implemented cue sheet file commands ARRANGER, COMPOSER, MESSAGE

This commit is contained in:
2012-01-01 17:35:20 +00:00
parent 8ac3ee15f1
commit 4c9783d7ae
4 changed files with 31 additions and 6 deletions

View File

@ -1288,7 +1288,12 @@ static int cue_interpret_line(struct burn_session *session, char *line,
for (apt++; *apt == 32 || *apt == 9; apt++);
}
if (strcmp(cmd, "CATALOG") == 0) {
if (strcmp(cmd, "ARRANGER") == 0) {
ret = cue_set_cdtext(session, crs->track, 0x84, apt, crs, 2);
if (ret <= 0)
goto ex;
} else if (strcmp(cmd, "CATALOG") == 0) {
for (cpt = apt; (cpt - apt) < 13 && *cpt == (*cpt & 0x7f);
cpt++);
if ((cpt - apt) < 13) {
@ -1322,6 +1327,11 @@ out_of_mem:;
ret = -1; goto ex;
}
} else if (strcmp(cmd, "COMPOSER") == 0) {
ret = cue_set_cdtext(session, crs->track, 0x83, apt, crs, 2);
if (ret <= 0)
goto ex;
} else if (strcmp(cmd, "FILE") == 0) {
if (crs->file_source != NULL) {
libdax_msgs_submit(libdax_messenger, -1, 0x00020192,
@ -1561,6 +1571,11 @@ overlapping_ba:;
goto ex;
}
} else if (strcmp(cmd, "MESSAGE") == 0) {
ret = cue_set_cdtext(session, crs->track, 0x85, apt, crs, 2);
if (ret <= 0)
goto ex;
} else if (strcmp(cmd, "PERFORMER") == 0) {
ret = cue_set_cdtext(session, crs->track, 0x81, apt, crs, 2);
if (ret <= 0)