add bundle support to push2

This commit is contained in:
Paul Davis 2016-07-08 17:10:26 -04:00
parent d2e59c308e
commit b31df0db2c
2 changed files with 57 additions and 5 deletions

View file

@ -82,6 +82,8 @@ class Push2 : public ARDOUR::ControlProtocol
static bool probe ();
static void* request_factory (uint32_t);
std::list<boost::shared_ptr<ARDOUR::Bundle> > bundles ();
bool has_editor () const { return true; }
void* get_gui () const;
void tear_down_gui ();
@ -373,6 +375,11 @@ class Push2 : public ARDOUR::ControlProtocol
void build_maps ();
// Bundle to represent our input ports
boost::shared_ptr<ARDOUR::Bundle> _input_bundle;
// Bundle to represent our output ports
boost::shared_ptr<ARDOUR::Bundle> _output_bundle;
MIDI::Port* _input_port;
MIDI::Port* _output_port;
boost::shared_ptr<ARDOUR::Port> _async_in;