summaryrefslogtreecommitdiff
path: root/libs/ardour/vca.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-07-08 11:43:34 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-07-08 11:46:01 -0400
commitb37ec38d867038c6eeac40d75d64206431bcd5e5 (patch)
treeee1126e4bfe25043c5693ae793e9dbbe32763b5e /libs/ardour/vca.cc
parentb7a7c1bbd8491f0c66f3fac8e84e8ee08c273f52 (diff)
change VCA number to signed.
Allows for more robust out-of-band (negative) value
Diffstat (limited to 'libs/ardour/vca.cc')
-rw-r--r--libs/ardour/vca.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/vca.cc b/libs/ardour/vca.cc
index 36ed09cf25..abc74fbdc6 100644
--- a/libs/ardour/vca.cc
+++ b/libs/ardour/vca.cc
@@ -34,7 +34,7 @@ using namespace PBD;
using std::string;
Glib::Threads::Mutex VCA::number_lock;
-uint32_t VCA::next_number = 1;
+int32_t VCA::next_number = 1;
string VCA::xml_node_name (X_("VCA"));
string
@@ -43,7 +43,7 @@ VCA::default_name_template ()
return _("VCA %n");
}
-uint32_t
+int32_t
VCA::next_vca_number ()
{
/* we could use atomic inc here, but elsewhere we need more complete
@@ -54,20 +54,20 @@ VCA::next_vca_number ()
}
void
-VCA::set_next_vca_number (uint32_t n)
+VCA::set_next_vca_number (int32_t n)
{
Glib::Threads::Mutex::Lock lm (number_lock);
next_number = n;
}
-uint32_t
+int32_t
VCA::get_next_vca_number ()
{
Glib::Threads::Mutex::Lock lm (number_lock);
return next_number;
}
-VCA::VCA (Session& s, uint32_t num, const string& name)
+VCA::VCA (Session& s, int32_t num, const string& name)
: Stripable (s, name, PresentationInfo (num, PresentationInfo::VCA))
, Muteable (s, name)
, Automatable (s)