cdrom: I/O always starts at the beginning of the file, and we translate those byte positions to start from the beginning MSF of the track anyway, so index should always be zero, fixes some audio playback issues

This commit is contained in:
Brad Parker 2019-06-30 19:50:58 -04:00
parent 9d5e91a6e5
commit 5aa2ebe6d5

View File

@ -560,7 +560,7 @@ int cdrom_write_cue(libretro_vfs_implementation_file *stream, char **out_buf, si
pos += snprintf(*out_buf + pos, len - pos, "FILE \"cdrom://drive%c-track%02d.bin\" BINARY\n", cdrom_drive, point);
#endif
pos += snprintf(*out_buf + pos, len - pos, " TRACK %02d %s\n", point, track_type);
pos += snprintf(*out_buf + pos, len - pos, " INDEX 01 %02d:%02d:%02d\n", pmin, psec, pframe);
pos += snprintf(*out_buf + pos, len - pos, " INDEX 01 00:00:00\n");
}
}