mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
CDROM: Set playing bit in status after starting
Fixes menu music in Army Men 3D.
This commit is contained in:
parent
5115c75f88
commit
559dc23e4e
|
@ -1596,6 +1596,7 @@ void CDROM::BeginPlaying(u8 track_bcd, TickCount ticks_late /* = 0 */, bool afte
|
|||
|
||||
m_secondary_status.ClearActiveBits();
|
||||
m_secondary_status.motor_on = true;
|
||||
m_secondary_status.playing_cdda = true;
|
||||
ClearSectorBuffers();
|
||||
ResetAudioDecoder();
|
||||
|
||||
|
@ -2241,11 +2242,8 @@ 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_current_lba);
|
||||
|
||||
// These bits/reporting doesn't happen if we're reading with the CDDA mode bit set.
|
||||
if (m_drive_state == DriveState::Playing)
|
||||
{
|
||||
m_secondary_status.playing_cdda = true;
|
||||
if (m_mode.report_audio)
|
||||
// The reporting doesn't happen if we're reading with the CDDA mode bit set.
|
||||
if (m_drive_state == DriveState::Playing && m_mode.report_audio)
|
||||
{
|
||||
const u8 frame_nibble = subq.absolute_frame_bcd >> 4;
|
||||
if (m_last_cdda_report_frame_nibble != frame_nibble)
|
||||
|
@ -2278,7 +2276,6 @@ void CDROM::ProcessCDDASector(const u8* raw_sector, const CDImage::SubChannelQ&
|
|||
SetAsyncInterrupt(Interrupt::DataReady);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Apply volume when pushing sectors to SPU.
|
||||
if (m_muted)
|
||||
|
|
Loading…
Reference in a new issue