Qt: Move downsampling to enhancement settings

This commit is contained in:
Connor McLaughlin
2022-10-13 17:48:31 +10:00
parent 98ef639c0a
commit cc3fadba14
6 changed files with 44 additions and 43 deletions

View File

@@ -764,9 +764,9 @@ bool CDROM::HasPendingDiscEvent() const
TickCount CDROM::GetAckDelayForCommand(Command command)
{
if (command == Command::Init)
if (command == Command::Reset)
{
// Init takes longer.
// Full reset takes longer.
return 120000;
}
@@ -1349,11 +1349,11 @@ void CDROM::ExecuteCommand(TickCount ticks_late)
return;
}
case Command::Reset:
case Command::Init:
{
Log_DebugPrintf("CDROM reset command");
if (m_command_second_response == Command::Reset)
if (m_command_second_response == Command::Init)
{
// still pending
EndCommand();
@@ -1367,7 +1367,7 @@ void CDROM::ExecuteCommand(TickCount ticks_late)
SoftReset(ticks_late);
QueueCommandSecondResponse(Command::Reset, RESET_TICKS);
QueueCommandSecondResponse(Command::Init, INIT_TICKS);
return;
}
break;
@@ -1666,7 +1666,7 @@ void CDROM::ExecuteCommandSecondResponse(TickCount ticks_late)
case Command::ReadTOC:
case Command::Pause:
case Command::Reset:
case Command::Init:
case Command::MotorOn:
case Command::Stop:
DoStatSecondResponse();

View File

@@ -82,7 +82,7 @@ private:
AUDIO_FIFO_SIZE = 44100 * 2,
AUDIO_FIFO_LOW_WATERMARK = 10,
RESET_TICKS = 400000,
INIT_TICKS = 400000,
ID_READ_TICKS = 33868,
MOTOR_ON_RESPONSE_TICKS = 400000,
@@ -113,7 +113,7 @@ private:
MotorOn = 0x07,
Stop = 0x08,
Pause = 0x09,
Reset = 0x0A,
Init = 0x0A,
Mute = 0x0B,
Demute = 0x0C,
Setfilter = 0x0D,
@@ -131,7 +131,7 @@ private:
Test = 0x19,
GetID = 0x1A,
ReadS = 0x1B,
Init = 0x1C,
Reset = 0x1C,
GetQ = 0x1D,
ReadTOC = 0x1E,
VideoCD = 0x1F,