openMSX
|
Manages the desired ratio between EmuTime and real time. More...
#include <SpeedManager.hh>
Public Member Functions | |
SpeedManager (CommandController &commandController) | |
~SpeedManager () | |
double | getSpeed () const |
Return the desired ratio between EmuTime and real time. | |
auto & | getSpeedSetting () |
auto & | getFastForwardSetting () |
auto & | getFastForwardSpeedSetting () |
Public Member Functions inherited from openmsx::Subject< SpeedManager > | |
Subject (const Subject &)=delete | |
Subject (Subject &&)=delete | |
Subject & | operator= (const Subject &)=delete |
Subject & | operator= (Subject &&)=delete |
void | attach (Observer< SpeedManager > &observer) |
void | detach (Observer< SpeedManager > &observer) |
bool | anyObservers () const |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::Subject< SpeedManager > | |
Subject ()=default | |
~Subject () | |
void | notify () const |
Manages the desired ratio between EmuTime and real time.
Currently this just republishes the value of the "speed" setting.
Definition at line 16 of file SpeedManager.hh.
|
explicit |
Definition at line 7 of file SpeedManager.cc.
References openmsx::Subject< T >::attach().
openmsx::SpeedManager::~SpeedManager | ( | ) |
Definition at line 26 of file SpeedManager.cc.
References openmsx::Subject< T >::detach().
|
inline |
Definition at line 29 of file SpeedManager.hh.
|
inline |
Definition at line 30 of file SpeedManager.hh.
|
inline |
Return the desired ratio between EmuTime and real time.
Definition at line 26 of file SpeedManager.hh.
Referenced by openmsx::PixelRenderer::frameStart(), openmsx::MSXMixer::getEffectiveSpeed(), openmsx::RealTime::getEmuDuration(), openmsx::RealTime::getRealDuration(), openmsx::MSXMixer::registerSound(), and openmsx::MSXMixer::setMixerParams().
|
inline |
Definition at line 28 of file SpeedManager.hh.