2006-04-03 23:26:08 -04:00
|
|
|
#ifndef ardour_generic_midi_control_protocol_h
|
|
|
|
#define ardour_generic_midi_control_protocol_h
|
|
|
|
|
2006-06-15 17:54:26 -04:00
|
|
|
#include <control_protocol/control_protocol.h>
|
2006-04-03 23:26:08 -04:00
|
|
|
|
|
|
|
namespace MIDI {
|
|
|
|
class Port;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ARDOUR {
|
|
|
|
|
|
|
|
class GenericMidiControlProtocol : public ControlProtocol {
|
|
|
|
public:
|
|
|
|
GenericMidiControlProtocol (Session&);
|
|
|
|
virtual ~GenericMidiControlProtocol();
|
|
|
|
|
2006-04-24 18:45:19 -04:00
|
|
|
int set_active (bool yn);
|
2006-05-23 15:54:52 -04:00
|
|
|
static bool probe() { return true; }
|
2006-04-03 23:26:08 -04:00
|
|
|
|
|
|
|
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;
|
2006-04-09 23:54:00 -04:00
|
|
|
|
|
|
|
void port_change ();
|
2006-04-03 23:26:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // ardour_generic_midi_control_protocol_h
|