mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-26 15:15:42 -04: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…
x
Reference in New Issue
Block a user