From a4486cf6fa50f1ecba5650f2a17fab4f6f236bb0 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 21 Mar 2020 12:30:57 +1000 Subject: [PATCH] CDROM: Don't miss last three frames at end of sector --- src/core/cdrom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index 2b684330d..4c0f0284f 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -1641,7 +1641,7 @@ void CDROM::ProcessCDDASector(const u8* raw_sector, const CDImage::SubChannelQ& m_spu->GeneratePendingSamples(); constexpr bool is_stereo = true; - constexpr u32 num_samples = RAW_SECTOR_OUTPUT_SIZE / sizeof(s16) / (is_stereo ? 2 : 1); + constexpr u32 num_samples = CDImage::RAW_SECTOR_SIZE / sizeof(s16) / (is_stereo ? 2 : 1); m_spu->EnsureCDAudioSpace(num_samples); const u8* sector_ptr = raw_sector;