From: Toni Wilen Date: Sat, 26 Nov 2022 17:40:57 +0000 (+0200) Subject: CHD CD audio sync fix X-Git-Tag: 41000~59 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=db82e068daf658129a941d6d4a8120a71197d48f;p=francis%2Fwinuae.git CHD CD audio sync fix --- diff --git a/blkdev_cdimage.cpp b/blkdev_cdimage.cpp index 3f23a3cd..13adfbd3 100644 --- a/blkdev_cdimage.cpp +++ b/blkdev_cdimage.cpp @@ -176,7 +176,7 @@ static int do_read (struct cdunit *cdu, struct cdtoc *t, uae_u8 *data, int secto } if (audio && size == 2352) type = CD_TRACK_AUDIO; - if (cdrom_read_data(cdu->chd_cdf, sector + (UINT32)t->offset, tmpbuf, type, true)) { + if (cdrom_read_data(cdu->chd_cdf, sector + (UINT32)t->offset, tmpbuf, type, false)) { memcpy(data, tmpbuf + offset, size); return 1; } @@ -1411,7 +1411,7 @@ static int parsechd (struct cdunit *cdu, struct zfile *zcue, const TCHAR *img, c const cdrom_track_info *strack = &stoc->tracks[i]; struct cdtoc *dtrack = &cdu->toc[i]; dtrack->address = strack->logframeofs; - dtrack->offset = strack->chdframeofs; + dtrack->offset = strack->logframeofs; dtrack->adr = cdrom_get_adr_control (cdf, i) >> 4; dtrack->ctrl = cdrom_get_adr_control (cdf, i) & 15; switch (strack->trktype)