Move a few declarations to first use.
[ardour.git] / libs / ardour / amp.cc
index b038cde695c847f7adba5374ebd42c6041616b18..b74a57dbce8badfeede821a8973b3ed995ddf121 100644 (file)
@@ -458,3 +458,16 @@ Amp::visible() const
 {
        return true;
 }
+
+std::string
+Amp::value_as_string (boost::shared_ptr<AutomationControl> ac) const
+{
+       if (ac == _gain_control) {
+               char buffer[32];
+               snprintf (buffer, sizeof (buffer), "%.2fdB", ac->internal_to_user (ac->get_value ()));
+               return buffer;
+       }
+
+       return Automatable::value_as_string (ac);
+}
+