diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-12 16:41:07 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-12 16:41:07 +0000 |
commit | 0c4fe26b4111e5c7955380d9a7ab55c4c775d6d0 (patch) | |
tree | 873e07f1ef5fe386bbebf1cdb259793ca2d62913 /libs/surfaces/mackie/surface.h | |
parent | 62620122a96af73c9714c4de492c43382c5f0297 (diff) |
MCP: switch devices on the fly; name MIDI ports appropriately; fix active state; move sysex parsing into Surface
git-svn-id: svn://localhost/ardour2/branches/3.0@11942 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/surface.h')
-rw-r--r-- | libs/surfaces/mackie/surface.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/libs/surfaces/mackie/surface.h b/libs/surfaces/mackie/surface.h index 310eb00c24..a105125a0c 100644 --- a/libs/surfaces/mackie/surface.h +++ b/libs/surfaces/mackie/surface.h @@ -38,13 +38,12 @@ class Led; class Surface : public PBD::ScopedConnectionList { public: - Surface (MackieControlProtocol&, jack_client_t* jack, const std::string& device_name, uint32_t number, surface_type_t stype); + Surface (MackieControlProtocol&, const std::string& name, uint32_t number, surface_type_t stype); virtual ~Surface(); surface_type_t type() const { return _stype; } uint32_t number() const { return _number; } - - MackieControlProtocol& mcp() const { return _mcp; } + const std::string& name() { return _name; } bool active() const { return _active; } void drop_routes (); @@ -148,20 +147,26 @@ public: void gui_selection_changed (ARDOUR::RouteNotificationListPtr); + MackieControlProtocol& mcp() const { return _mcp; } + protected: void init_controls(); void init_strips (); private: MackieControlProtocol& _mcp; - SurfacePort* _port; - surface_type_t _stype; - uint32_t _number; - bool _active; - bool _connected; - Mackie::JogWheel* _jog_wheel; + SurfacePort* _port; + surface_type_t _stype; + uint32_t _number; + std::string _name; + bool _active; + bool _connected; + Mackie::JogWheel* _jog_wheel; void jog_wheel_state_display (Mackie::JogWheel::State state); + void handle_midi_sysex (MIDI::Parser&, MIDI::byte *, size_t count); + MidiByteArray host_connection_query (MidiByteArray& bytes); + MidiByteArray host_connection_confirmation (const MidiByteArray& bytes); }; } |