add support for IP MIDI (multicast MIDI over IP UDP sockets) to ardour and use it...
[ardour.git] / libs / surfaces / mackie / device_info.cc
index 4df56d3a7aaa105599f49dbe08bbfd2687426c53..93800aa43b942f0a0d787ce7308ac6540448b73b 100644 (file)
@@ -50,6 +50,7 @@ DeviceInfo::DeviceInfo()
        , _has_jog_wheel (true)
        , _has_touch_sense_faders (true)
        , _uses_logic_control_buttons (false)
+       , _uses_ipmidi (false)
        , _name (X_("Mackie Control Universal Pro"))
 {
        mackie_control_buttons ();
@@ -267,6 +268,12 @@ DeviceInfo::set_state (const XMLNode& node, int /* version */)
                }
        }
 
+       if ((child = node.child ("UsesIPMIDI")) != 0) {
+               if ((prop = child->property ("value")) != 0) {
+                       _uses_ipmidi = string_is_affirmative (prop->value());
+               }
+       }
+
        if ((child = node.child ("LogicControlButtons")) != 0) {
                if ((prop = child->property ("value")) != 0) {
                        _uses_logic_control_buttons = string_is_affirmative (prop->value());
@@ -369,6 +376,12 @@ DeviceInfo::has_timecode_display () const
        return _has_timecode_display;
 }
 
+bool
+DeviceInfo::uses_ipmidi () const
+{
+       return _uses_ipmidi;
+}
+
 bool
 DeviceInfo::has_global_controls () const
 {