Stefan Schuermans
implement synchronization streams and managers
Stefan Schuermans commited 7d3347c at 2014-01-03 14:54:06
/* Blinker
Copyright 2011-2014 Stefan Schuermans <stefan@blinkenarea.org>
Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
a blinkenarea.org project */
#ifndef BLINKER_SYNCRECV_H
#define BLINKER_SYNCRECV_H
#include <stdint.h>
#include <string>
namespace Blinker {
/// video sync stream receiver interface
class SyncRecv
{
public:
/// synchronization information
struct Info {
bool pause; ///< if pause mode is active
std::string name; ///< name of current piece
uint32_t pos_ms; ///< current position within the piece in milliseconds
};
public:
/// constructor
SyncRecv();
/// virtual destructor
virtual ~SyncRecv();
public:
/**
* @brief send synchronization information
* @param[in] sync sync stream name
* @param[in] pInfo synchronization information
*/
virtual void sendInfo(const std::string &sync, Info &info) = 0;
}; // class SyncRecv
} // namespace Blinker
#endif // #ifndef BLINKER_SYNCRECV_H
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX