mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 23:25:41 +00:00
CDROM: Handle speed change while reading
Fixes level music in Croc 2 demo.
This commit is contained in:
parent
0a86aba1cb
commit
92038da3d5
|
@ -1638,6 +1638,12 @@ void CDROM::ExecuteCommand(void*, TickCount ticks, TickCount ticks_late)
|
|||
s_drive_state_names[static_cast<u8>(s_drive_state)], change_ticks,
|
||||
s_mode.double_speed ? "double" : "single");
|
||||
s_drive_event->Delay(change_ticks);
|
||||
|
||||
if (IsReadingOrPlaying())
|
||||
{
|
||||
WARNING_LOG("Speed change while reading/playing, reads will be temporarily delayed.");
|
||||
s_drive_event->SetInterval(GetTicksForRead());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue