From d7fb0ac29874eb75d6960c146bea42d5c4599ec8 Mon Sep 17 00:00:00 2001 From: Seth Polsley Date: Tue, 14 Jul 2020 19:13:33 -0500 Subject: [PATCH] Audio CD format as default and update based on data mode --- BasiliskII/src/bincue.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/bincue.cpp b/BasiliskII/src/bincue.cpp index fe654bcc..a500811f 100644 --- a/BasiliskII/src/bincue.cpp +++ b/BasiliskII/src/bincue.cpp @@ -263,6 +263,11 @@ static bool ParseCueSheet(FILE *fh, CueSheet *cs, const char *cuefile) totalPregap = 0; prestart = 0; + + // Use Audio CD settings by default, otherwise data mode will be specified + cs->raw_sector_size = 2352; + cs->cooked_sector_size = 2352; + cs->header_size = 0; while (fgets(line, MAXLINE, fh) != NULL) { Track *curr = &cs->tracks[cs->tcnt]; @@ -321,7 +326,7 @@ static bool ParseCueSheet(FILE *fh, CueSheet *cs, const char *cuefile) } curr->number = i_track; - // parse track type + // parse track type and update sector size for data discs if applicable field = strtok(NULL, " \t\n\r"); if (!strcmp("MODE1/2352", field)) { // red-book CD-ROM standard