362c1f4c3b5ce9e3fce11167a51fbe4cdb2174de
Stefan Schuermans implement synchronization s...

Stefan Schuermans authored 10 years ago

1) /* Blinker
Stefan Schuermans update copyright header

Stefan Schuermans authored 5 years ago

2)    Copyright 2011-2019 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans implement synchronization s...

Stefan Schuermans authored 10 years ago

3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
4)    a blinkenarea.org project */
5) 
6) #ifndef BLINKER_SYNCRECV_H
7) #define BLINKER_SYNCRECV_H
8) 
9) #include <string>
10) 
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

11) #include "Time.h"
12) 
Stefan Schuermans implement synchronization s...

Stefan Schuermans authored 10 years ago

13) namespace Blinker {
14) 
15) /// video sync stream receiver interface
16) class SyncRecv
17) {
18) public:
19)   /// synchronization information
20)   struct Info {
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

21)     bool        pause; ///< if pause mode is active
22)     std::string name;  ///< name of current piece
23)     Time        pos;   ///< current position within the piece
Stefan Schuermans implement synchronization s...

Stefan Schuermans authored 10 years ago

24)   };
25) 
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

26) public:
27)   /**
28)    * @brief check if playlist entry name matches sync name
29)    * @param[in] playlist name in playlist
30)    * @param[in] sync name from synchronization information
31)    * @return true if name matches, false otherwise
32)    */
33)   static bool checkName(const std::string &playlist, const std::string &sync);
34)