Lumiera  0.pre.03
»edit your freedom«
ProcessImpl Class Reference

#include "steam/play/dummy-player-service.hpp"

Description

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
 

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
 
NonCopyableoperator= (NonCopyable const &)=delete
 

Private Attributes

Display::Sink display_
 
uint fps_
 
std::unique_ptr< DummyImageGeneratorimageGen_
 
bool play_
 
std::unique_ptr< TickServicetick_
 

Member Function Documentation

◆ createHandle()

DummyPlayer::Process createHandle ( )
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().

+ Here is the call graph for this function:
+ Inheritance diagram for ProcessImpl:
+ Collaboration diagram for ProcessImpl:

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