summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/meter.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-12-23 00:51:26 +0000
committerCarl Hetherington <carl@carlh.net>2009-12-23 00:51:26 +0000
commitbe8a2e20dcacfc980c8de0341165b0be67ce35fd (patch)
tree350a57262d903f1964ac33e2b2917e1760683413 /libs/ardour/ardour/meter.h
parent24c0654fd5ec04066f139f9684496f5fe2ed9422 (diff)
Fix assertion failure on dropping a track out of rec-arm.
git-svn-id: svn://localhost/ardour2/branches/3.0@6393 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/meter.h')
-rw-r--r--libs/ardour/ardour/meter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/ardour/meter.h b/libs/ardour/ardour/meter.h
index 2a283c0c64..478a88efcf 100644
--- a/libs/ardour/ardour/meter.h
+++ b/libs/ardour/ardour/meter.h
@@ -71,6 +71,9 @@ public:
/** Compute peaks */
void run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes, bool);
+ ChanCount input_streams () const { return current_meters; }
+ ChanCount output_streams () const { return current_meters; }
+
float peak_power (uint32_t n) {
if (n < _visible_peak_power.size()) {
return _visible_peak_power[n];
@@ -92,7 +95,7 @@ public:
private:
friend class IO;
- uint32_t current_meters;
+ ChanCount current_meters;
std::vector<float> _peak_power;
std::vector<float> _visible_peak_power;