CDROM: Skip pregap when processing CDDA

This commit is contained in:
Connor McLaughlin 2020-03-09 00:01:26 +10:00
parent b81071a65c
commit 776159265a
1 changed files with 4 additions and 0 deletions

View File

@ -1572,6 +1572,10 @@ void CDROM::ProcessCDDASector(const u8* raw_sector, const CDImage::SubChannelQ&
// For CDDA sectors, the whole sector contains the audio data. // For CDDA sectors, the whole sector contains the audio data.
Log_DevPrintf("Read sector %u as CDDA", m_last_requested_sector); Log_DevPrintf("Read sector %u as CDDA", m_last_requested_sector);
// Skip the pregap, and don't report on it.
if (subq.index_number_bcd == 0)
return;
if (m_mode.report_audio) if (m_mode.report_audio)
{ {
const u8 frame_nibble = subq.absolute_frame_bcd >> 4; const u8 frame_nibble = subq.absolute_frame_bcd >> 4;