VST report audioMasterPinConnected according to Pin Management
[ardour.git] / libs / ardour / scene_change.cc
index dec6a11f854dfd962c511f6abaecbc48eb4881b5..aed899565fbbed97aefea12e1fdae97c47bdc910 100644 (file)
@@ -25,6 +25,7 @@ using namespace PBD;
 using namespace ARDOUR;
 
 std::string SceneChange::xml_node_name = X_("SceneChange");
+const uint32_t SceneChange::out_of_bound_color = 0x00000000; /* note: zero alpha means invisible, which acts as out-of-bound signal */
 
 boost::shared_ptr<SceneChange>
 SceneChange::factory (const XMLNode& node, int version)
@@ -38,8 +39,30 @@ SceneChange::factory (const XMLNode& node, int version)
        return boost::shared_ptr<SceneChange>();
 }
 
+SceneChange::SceneChange ()
+        : _color (out_of_bound_color)
+        , _active (true)
+{
+}
+
+void
+SceneChange::set_color (uint32_t c)
+{
+        _color = c;
+        ColorChanged (); /* EMIT SIGNAL */
+}
+
+uint32_t
+SceneChange::color() const
+{
+        return _color;
+}
+
 void
-SceneChange::set_time (framepos_t t)
+SceneChange::set_active (bool yn)
 {
-       _time = t;
+        if (_active != yn) {
+                _active = yn;
+                ActiveChanged (); /* EMIT SIGNAL */
+        }
 }