class PeakMeter : public Processor {
public:
PeakMeter(Session& s) : Processor(s, "Meter") {}
- PeakMeter(Session&s, const XMLNode& node);
void meter();
void reset ();
void reflect_inputs (const ChanCount& in);
/** Compute peaks */
- void run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes, bool);
+ void run (BufferSet& bufs, framepos_t start_frame, framepos_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()) {
private:
friend class IO;
- uint32_t current_meters;
+ ChanCount current_meters;
std::vector<float> _peak_power;
std::vector<float> _visible_peak_power;