Lumiera
0.pre.03
»edit your freedom«
|
#include "steam/play/dummy-player-service.hpp"
Actual implementation of a single (dummy) playback process.
The DummyPlayerService (see below) maintains a collection of such actively running playback processes, while the client code gets DummyPlayer::Process handles to track any ongoing use. Users of the plain C interface get a direct bare pointer to the respective ProcessImpl instance and have to manage the lifecycle manually.
Definition at line 70 of file dummy-player-service.hpp.
Public Member Functions | |
ProcessImpl (LumieraDisplaySlot) | |
DummyPlayer::Process | createHandle () |
activate a forwarding smart-Handle to be used by client code for communication with the play process implementation. More... | |
void | doPlay (bool yes) |
forward the play/pause toggle to the play process implementation | |
bool | isActive () |
bool | isPlaying () |
void | setRate (uint fps) |
activate a playback process with given specification | |
Public Member Functions inherited from DummyPlayer::ProcessImplementationLink | |
virtual | ~ProcessImplementationLink () |
this is an interface | |
Static Public Member Functions | |
static void | terminate (DummyPlayer::ProcessImplementationLink *) |
deleter function for lib::Handle | |
Private Member Functions | |
void | doFrame () |
periodically invoked while playing | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
Private Attributes | |
Display::Sink | display_ |
uint | fps_ |
std::unique_ptr< DummyImageGenerator > | imageGen_ |
bool | play_ |
std::unique_ptr< TickService > | tick_ |
|
virtual |
activate a forwarding smart-Handle to be used by client code for communication with the play process implementation.
The handle manages the lifecycle of the interface / play process connection. This virtual function is used by the interface proxy to connect the client side and the actual play process, after creating the latter through the interface system.
Implements DummyPlayer::ProcessImplementationLink.
Definition at line 297 of file dummy-player-service.cpp.
References Handle< IMP >::activate().