13
0

Don't allow to deactivate meter.

before this change:

1) switch to 'custom' meter point,
2) deactivate meter processor.

-> meters does not run regardless of meter-point
-> meter can only be re-nabled in 'custom' mode
This commit is contained in:
Robin Gareus 2013-07-25 10:59:24 +02:00 committed by Paul Davis
parent d327ab43cf
commit 26c4ae14cb
2 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,9 @@ public:
/** Compute peaks */
void run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes, bool);
void activate () { }
void deactivate () { }
ChanCount input_streams () const { return current_meters; }
ChanCount output_streams () const { return current_meters; }

View File

@ -43,6 +43,8 @@ PeakMeter::PeakMeter (Session& s, const std::string& name)
Iec1ppmdsp::init(s.nominal_frame_rate());
Iec2ppmdsp::init(s.nominal_frame_rate());
Vumeterdsp::init(s.nominal_frame_rate());
_pending_active = true;
_active = true;
}
PeakMeter::~PeakMeter ()