Remove the source files which got transferred to libpbd
[ardour.git] / libs / ardour / midi_scene_change.cc
index dae8acfc2164780c88a3bdd6b96a75d86654ec97..aede5c4b90c0f5596b9a2a6f25227a20cffd513e 100644 (file)
@@ -110,6 +110,8 @@ MIDISceneChange::get_state ()
        node->add_property (X_("bank"), buf);
        snprintf (buf, sizeof (buf), "%d", (int) _channel);
        node->add_property (X_("channel"), buf);
+       snprintf (buf, sizeof (buf), "%u", _color);
+       node->add_property (X_("color"), buf);
 
        return *node;
 }
@@ -138,5 +140,19 @@ MIDISceneChange::set_state (const XMLNode& node, int /* version-ignored */)
        }
        _channel = atoi (prop->value());
 
+       if ((prop = node.property (X_("color"))) != 0) {
+                _color = atoi (prop->value());
+        } else {
+                _color = out_of_bound_color;
+        }
+
        return 0;
 }
+
+bool
+MIDISceneChange::operator==(const MIDISceneChange& other) const
+{
+        return _program == other._program &&
+                _bank == other._bank &&
+                _channel == other._channel;
+}