From be8a2e20dcacfc980c8de0341165b0be67ce35fd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 23 Dec 2009 00:51:26 +0000 Subject: 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 --- libs/ardour/ardour/meter.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/ardour/ardour') 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 _peak_power; std::vector _visible_peak_power; -- cgit v1.2.3