mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
This is mostly a dummy implementation except for the dmx class which
should be working. It is intended for testing on PCs with budget
DVB cards which don't have a decoder anyway.
Origin commit data
------------------
Branch: master
Commit: 9f433f9dfa
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-10-08 (Mon, 08 Oct 2012)
------------------
This commit was generated by Migit
35 lines
860 B
C++
35 lines
860 B
C++
#ifndef __PLAYBACK_H
|
|
#define __PLAYBACK_H
|
|
|
|
#include <string>
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
PLAYMODE_TS = 0,
|
|
PLAYMODE_FILE,
|
|
} playmode_t;
|
|
|
|
class cPlayback
|
|
{
|
|
private:
|
|
bool playing;
|
|
public:
|
|
bool Open(playmode_t PlayMode);
|
|
void Close(void);
|
|
bool Start(char * filename, unsigned short vpid, int vtype, unsigned short apid, bool ac3, int duration);
|
|
bool Stop(void);
|
|
bool SetAPid(unsigned short pid, bool ac3);
|
|
bool SetSPid(int pid);
|
|
bool SetSpeed(int speed);
|
|
bool GetSpeed(int &speed) const;
|
|
bool GetPosition(int &position, int &duration);
|
|
bool SetPosition(int position, bool absolute = false);
|
|
void FindAllPids(uint16_t *apids, unsigned short *ac3flags, uint16_t *numpida, std::string *language);
|
|
void FindAllSPids(int *spids, uint16_t *numpids, std::string *language);
|
|
//
|
|
cPlayback(int num = 0);
|
|
~cPlayback();
|
|
};
|
|
|
|
#endif
|