mirror of
https://github.com/LIV2/WinUAE.git
synced 2025-12-06 00:12:52 +00:00
CHD CD audio sync fix
This commit is contained in:
parent
42dce94781
commit
db82e068da
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user