13
0
livetrax/libs/surfaces/generic_midi/generic_midi_control_protocol.h
David Robillard 6313751f75 Moved SMPTE type/functions into SMPTE namespace;
LGPL'd SMPTE code and moved in to libardour_cp;
Juggled control_protocol dir layout to be the same as other libs;


git-svn-id: svn://localhost/ardour2/trunk@610 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-15 21:54:26 +00:00

35 lines
694 B
C++

#ifndef ardour_generic_midi_control_protocol_h
#define ardour_generic_midi_control_protocol_h
#include <control_protocol/control_protocol.h>
namespace MIDI {
class Port;
}
namespace ARDOUR {
class GenericMidiControlProtocol : public ControlProtocol {
public:
GenericMidiControlProtocol (Session&);
virtual ~GenericMidiControlProtocol();
int set_active (bool yn);
static bool probe() { return true; }
void set_port (MIDI::Port*);
MIDI::Port* port () const { return _port; }
void send_route_feedback (std::list<Route*>&);
private:
void route_feedback (ARDOUR::Route&, bool);
MIDI::Port* _port;
void port_change ();
};
}
#endif // ardour_generic_midi_control_protocol_h