From: Toni Wilen Date: Tue, 18 Jun 2019 17:34:38 +0000 (+0300) Subject: PREGAP added extra silence at the beginning of first audio track if cue/iso/separate... X-Git-Tag: 4300~191 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=842174072172b604e5134e0d7c24f9e527a83527;p=francis%2Fwinuae.git PREGAP added extra silence at the beginning of first audio track if cue/iso/separate audio tracks (wav, mp3 etc) image. --- diff --git a/blkdev_cdimage.cpp b/blkdev_cdimage.cpp index 2891772c..194afdf6 100644 --- a/blkdev_cdimage.cpp +++ b/blkdev_cdimage.cpp @@ -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) {