79f91c7a20
LOADING 2.X SESSIONS WITH THIS COMMIT IN PLACE WILL (PROBABLY) CORRUPT THE .ardour FILE, MAKING THE SESSION UNLOADABLE ON 2.X AND LOSING INFORMATION. So don't do that unless you make a backup of the session file first. git-svn-id: svn://localhost/ardour2/branches/3.0@5786 d708f5d6-7413-0410-9779-e7cbd77b26cf
35 lines
615 B
C++
35 lines
615 B
C++
#ifndef ardour_powermate_h
|
|
#define ardour_powermate_h
|
|
|
|
#include <sys/time.h>
|
|
#include <pthread.h>
|
|
|
|
#include "control_protocol/control_protocol.h"
|
|
|
|
class PowermateControlProtocol : public ARDOUR::ControlProtocol
|
|
{
|
|
public:
|
|
PowermateControlProtocol (ARDOUR::Session&);
|
|
virtual ~PowermateControlProtocol();
|
|
|
|
int set_active (bool yn);
|
|
static bool probe ();
|
|
|
|
XMLNode& get_state ();
|
|
int set_state (const XMLNode&, int version = 3000);
|
|
|
|
private:
|
|
|
|
static void* SerialThreadEntry (void* arg);
|
|
void* SerialThread ();
|
|
|
|
void ProcessEvent(struct input_event *ev);
|
|
|
|
int mPort;
|
|
pthread_t mThread;
|
|
|
|
};
|
|
|
|
|
|
#endif
|