fixed bug where cd playing would skip a track in CDDA mode

This commit is contained in:
nehalmistry 2002-12-11 20:07:05 +00:00
parent 6eae3499d2
commit e3a0b89c33

View file

@ -63,7 +63,6 @@ local int CDRead(Sample *sample, void *buf, int len)
if (len > 2352 * (CDtocentry[CDTrack+1].cdte_addr.lba - CDtocentry[CDTrack].cdte_addr.lba) - pos) {
len = 2352 * (CDtocentry[CDTrack+1].cdte_addr.lba - CDtocentry[CDTrack].cdte_addr.lba) - pos;
pos = 0;
CDTrack = (CDTrack != NumCDTracks ? CDTrack + 1 : 1);
memcpy(buf, sample->User, len);
PlayingMusic = 0;
return len;