diff options
author | David Robillard <d@drobilla.net> | 2009-05-04 17:05:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-04 17:05:55 +0000 |
commit | 807bc4c3d6c619244ac01d6be8ad98109140e3e6 (patch) | |
tree | 14373b288fdeb828bd4cc204b6cc6815e77a5cce /libs | |
parent | ca10cc82a4374a5b413c06ead6cc89c53f8881ee (diff) |
Reconfigure GUI meters when route I/O configuration changes.
git-svn-id: svn://localhost/ardour2/branches/3.0@5037 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/processor.h | 5 | ||||
-rw-r--r-- | libs/ardour/meter.cc | 4 | ||||
-rw-r--r-- | libs/ardour/processor.cc | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/libs/ardour/ardour/processor.h b/libs/ardour/ardour/processor.h index c2c23b8f67..1167930d61 100644 --- a/libs/ardour/ardour/processor.h +++ b/libs/ardour/ardour/processor.h @@ -107,8 +107,9 @@ class Processor : public SessionObject, public AutomatableControls, public Laten static sigc::signal<void,Processor*> ProcessorCreated; - sigc::signal<void> ActiveChanged; - sigc::signal<void> PlacementChanged; + sigc::signal<void> ActiveChanged; + sigc::signal<void> PlacementChanged; + sigc::signal<void,ChanCount,ChanCount> ConfigurationChanged; protected: int _pending_active; diff --git a/libs/ardour/meter.cc b/libs/ardour/meter.cc index bdb8fec708..ec2a136fb5 100644 --- a/libs/ardour/meter.cc +++ b/libs/ardour/meter.cc @@ -98,12 +98,16 @@ PeakMeter::reset_max () bool PeakMeter::configure_io (ChanCount in, ChanCount out) { + cerr << "METER CONFIGURE IO " << in << " -> " << out << endl; + /* we're transparent no matter what. fight the power. */ if (out != in) { return false; } uint32_t limit = in.n_total(); + + cerr << "METER LIMIT " << limit << endl; while (_peak_power.size() > limit) { _peak_power.pop_back(); diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index 8ea45de406..63848e8c40 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -256,5 +256,7 @@ Processor::configure_io (ChanCount in, ChanCount out) _configured_output = out; _configured = true; + ConfigurationChanged.emit (in, out); + return true; } |