2 Edited for VOMP by Chris Tallon
3 Edits Copyright 2004-2005 Chris Tallon
5 This class will be replaced soon.
11 * (C) 2003 Dominic Morris
17 * Transceiver stuff, stolen from streamdev again...
20 #ifndef VDR_MEDIAMVP_TRANSCEIVER_H
21 #define VDR_MEDIAMVP_TRANSCEIVER_H
23 #include <vdr/receiver.h>
25 #include <vdr/thread.h>
26 #include <vdr/status.h>
28 class cRingBufferLinear;
31 class cServerConnection;
36 #include "ringbuffer.h"
39 class cMediamvpTransceiver: public cReceiver, public cThread {
40 // friend class cMediamvpVdrURL;
43 cRingBufferLinear *m_RingBuffer;
48 #if VDRVERSNUM >= 10300
53 pthread_mutex_t ringLock;
58 virtual void Receive(uchar *Data, int Length);
59 virtual void Action(void);
62 cMediamvpTransceiver(const cChannel *Channel, int Priority, int Socket, cDevice *Device);
63 virtual ~cMediamvpTransceiver(void);
65 bool Attach(void) { return m_Device->AttachReceiver(this); }
66 void Detach(void) { cReceiver::Detach(); }
72 unsigned long getBlock(unsigned char* buffer, unsigned long amount);
73 virtual void Activate(bool On);
77 #endif // VDR_MEDIAMVP_TRANSCEIVER_H