mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 14:25:45 -04:00
HostInterface: Move PauseSystem from common to base
This commit is contained in:
@ -157,23 +157,6 @@ bool CommonHostInterface::BootSystem(const SystemBootParameters& parameters)
|
||||
return true;
|
||||
}
|
||||
|
||||
void CommonHostInterface::PauseSystem(bool paused)
|
||||
{
|
||||
if (paused == System::IsPaused() || System::IsShutdown())
|
||||
return;
|
||||
|
||||
System::SetState(paused ? System::State::Paused : System::State::Running);
|
||||
if (!paused)
|
||||
m_audio_stream->EmptyBuffers();
|
||||
m_audio_stream->PauseOutput(paused);
|
||||
|
||||
OnSystemPaused(paused);
|
||||
UpdateSpeedLimiterState();
|
||||
|
||||
if (!paused)
|
||||
System::ResetPerformanceCounters();
|
||||
}
|
||||
|
||||
void CommonHostInterface::DestroySystem()
|
||||
{
|
||||
SetTimerResolutionIncreased(false);
|
||||
@ -748,7 +731,7 @@ void CommonHostInterface::OnSystemPaused(bool paused)
|
||||
StopControllerRumble();
|
||||
}
|
||||
|
||||
m_audio_stream->PauseOutput(paused);
|
||||
UpdateSpeedLimiterState();
|
||||
}
|
||||
|
||||
void CommonHostInterface::OnSystemDestroyed()
|
||||
|
@ -96,8 +96,6 @@ public:
|
||||
/// Returns true if running in batch mode, i.e. exit after emulation.
|
||||
ALWAYS_INLINE bool InBatchMode() const { return m_batch_mode; }
|
||||
|
||||
void PauseSystem(bool paused);
|
||||
|
||||
/// Parses command line parameters for all frontends.
|
||||
bool ParseCommandLineParameters(int argc, char* argv[], std::unique_ptr<SystemBootParameters>* out_boot_params);
|
||||
|
||||
|
Reference in New Issue
Block a user