diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-24 02:28:51 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-24 02:28:51 +0000 |
commit | 33140f32671576a285d62f529447f941f96313fc (patch) | |
tree | 44faee5b21e3181077d0c22180895fb072432a53 /libs/surfaces/mackie/device_info.cc | |
parent | 10d37fecc1b54487a5fb0f3652bfb45a5224ef8b (diff) |
add support for IP MIDI (multicast MIDI over IP UDP sockets) to ardour and use it if requested inside MCP code. required renaming the pre-existing MIDI::Port as MIDI:JackMIDIPort - MIDI::Port becomes the base type for both JackMIDIPort and IPMIDIPort
git-svn-id: svn://localhost/ardour2/branches/3.0@12069 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/device_info.cc')
-rw-r--r-- | libs/surfaces/mackie/device_info.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/device_info.cc b/libs/surfaces/mackie/device_info.cc index 4df56d3a7a..93800aa43b 100644 --- a/libs/surfaces/mackie/device_info.cc +++ b/libs/surfaces/mackie/device_info.cc @@ -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()); @@ -370,6 +377,12 @@ DeviceInfo::has_timecode_display () const } bool +DeviceInfo::uses_ipmidi () const +{ + return _uses_ipmidi; +} + +bool DeviceInfo::has_global_controls () const { return _has_global_controls; |