1
0
Fork 0

Correct relative track length in subchannel data for CD-ROM images; fixes speech audio cutting off too soon in Casino Tournament of Champions.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4189
This commit is contained in:
ripsaw8080 2019-02-04 15:16:55 +00:00
parent 64d25c4be4
commit 4d35f0ef27

View file

@ -205,7 +205,7 @@ bool CDROM_Interface_Image::GetAudioSub(unsigned char& attr, unsigned char& trac
attr = tracks[track - 1].attr;
index = 1;
FRAMES_TO_MSF(player.currFrame + 150, &absPos.min, &absPos.sec, &absPos.fr);
FRAMES_TO_MSF(player.currFrame - tracks[track - 1].start + 150, &relPos.min, &relPos.sec, &relPos.fr);
FRAMES_TO_MSF(player.currFrame - tracks[track - 1].start, &relPos.min, &relPos.sec, &relPos.fr);
return true;
}