]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
PREGAP added extra silence at the beginning of first audio track if cue/iso/separate...
authorToni Wilen <twilen@winuae.net>
Tue, 18 Jun 2019 17:34:38 +0000 (20:34 +0300)
committerToni Wilen <twilen@winuae.net>
Tue, 18 Jun 2019 17:34:38 +0000 (20:34 +0300)
blkdev_cdimage.cpp

index 2891772cf519b13b40906db96a97b4cf09b7af84..194afdf69c342d7ccb494dcbf986a70776947ad3 100644 (file)
@@ -1805,6 +1805,9 @@ static int parsecue (struct cdunit *cdu, struct zfile *zcue, const TCHAR *img)
                                        if (!secoffset) {
                                                // secoffset == 0: same file contained also previous track
                                                t->offset = fileoffset - pregap * t->size;
+                                       } else {
+                                               // pregap was already added, do not add extra silence.
+                                               t->pregap = 0;
                                        }
                                        t->address += postgap;
                                        if (fnametypeid == AUDENC_PCM && t->handle) {