From 776159265a5306cc70b639725b50d998bb0bc83f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 9 Mar 2020 00:01:26 +1000 Subject: [PATCH] CDROM: Skip pregap when processing CDDA --- src/core/cdrom.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index 3cb2a2344..afbdd846c 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -1572,6 +1572,10 @@ void CDROM::ProcessCDDASector(const u8* raw_sector, const CDImage::SubChannelQ& // For CDDA sectors, the whole sector contains the audio data. 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) { const u8 frame_nibble = subq.absolute_frame_bcd >> 4;