Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::RETRO::CReversiblePlayback Class Reference

#include <ReversiblePlayback.h>

Inheritance diagram for KODI::RETRO::CReversiblePlayback:
KODI::RETRO::IPlayback KODI::RETRO::IGameLoopCallback Observer

Public Member Functions

 CReversiblePlayback (GAME::CGameClient *gameClient, CRPRenderManager &renderManager, CCheevos *cheevos, CGUIGameMessenger &guiMessenger, double fps, size_t serializeSize)
 
 ~CReversiblePlayback () override
 
void Initialize () override
 
void Deinitialize () override
 
bool CanPause () const override
 
bool CanSeek () const override
 
unsigned int GetTimeMs () const override
 
unsigned int GetTotalTimeMs () const override
 
unsigned int GetCacheTimeMs () const override
 
void SeekTimeMs (unsigned int timeMs) override
 
double GetSpeed () const override
 
void SetSpeed (double speedFactor) override
 
void PauseAsync () override
 
std::string CreateSavestate (bool autosave, const std::string &savestatePath="") override
 
bool LoadSavestate (const std::string &savestatePath) override
 
void FrameEvent () override
 The next frame is being shown.
 
void RewindEvent () override
 The prior frame is being shown.
 
void Notify (const Observable &obs, const ObservableMessage msg) override
 Process a message from an observable.
 
- Public Member Functions inherited from KODI::RETRO::IPlayback
virtual ~IPlayback ()=default
 
- Public Member Functions inherited from KODI::RETRO::IGameLoopCallback
virtual ~IGameLoopCallback ()=default
 
- Public Member Functions inherited from Observer
 Observer ()=default
 
virtual ~Observer ()=default
 

Constructor & Destructor Documentation

◆ CReversiblePlayback()

CReversiblePlayback::CReversiblePlayback ( GAME::CGameClient * gameClient,
CRPRenderManager & renderManager,
CCheevos * cheevos,
CGUIGameMessenger & guiMessenger,
double fps,
size_t serializeSize )

◆ ~CReversiblePlayback()

CReversiblePlayback::~CReversiblePlayback ( )
override

Member Function Documentation

◆ CanPause()

bool KODI::RETRO::CReversiblePlayback::CanPause ( ) const
inlineoverridevirtual

◆ CanSeek()

bool KODI::RETRO::CReversiblePlayback::CanSeek ( ) const
inlineoverridevirtual

◆ CreateSavestate()

std::string CReversiblePlayback::CreateSavestate ( bool autosave,
const std::string & savestatePath = "" )
overridevirtual
Todo
Handle savestates for standalone game clients

Implements KODI::RETRO::IPlayback.

◆ Deinitialize()

void CReversiblePlayback::Deinitialize ( )
overridevirtual

◆ FrameEvent()

void CReversiblePlayback::FrameEvent ( )
overridevirtual

The next frame is being shown.

Implements KODI::RETRO::IGameLoopCallback.

◆ GetCacheTimeMs()

unsigned int KODI::RETRO::CReversiblePlayback::GetCacheTimeMs ( ) const
inlineoverridevirtual

◆ GetSpeed()

double CReversiblePlayback::GetSpeed ( ) const
overridevirtual

◆ GetTimeMs()

unsigned int KODI::RETRO::CReversiblePlayback::GetTimeMs ( ) const
inlineoverridevirtual

◆ GetTotalTimeMs()

unsigned int KODI::RETRO::CReversiblePlayback::GetTotalTimeMs ( ) const
inlineoverridevirtual

◆ Initialize()

void CReversiblePlayback::Initialize ( )
overridevirtual

◆ LoadSavestate()

bool CReversiblePlayback::LoadSavestate ( const std::string & savestatePath)
overridevirtual

◆ Notify()

void CReversiblePlayback::Notify ( const Observable & obs,
const ObservableMessage msg )
overridevirtual

Process a message from an observable.

Parameters
obsThe observable that sends the message.
msgThe message.

Implements Observer.

◆ PauseAsync()

void CReversiblePlayback::PauseAsync ( )
overridevirtual

◆ RewindEvent()

void CReversiblePlayback::RewindEvent ( )
overridevirtual

The prior frame is being shown.

Implements KODI::RETRO::IGameLoopCallback.

◆ SeekTimeMs()

void CReversiblePlayback::SeekTimeMs ( unsigned int timeMs)
overridevirtual

◆ SetSpeed()

void CReversiblePlayback::SetSpeed ( double speedFactor)
overridevirtual

The documentation for this class was generated from the following files: