X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fmonitor_processor.cc;h=56d8f879d62e4e9c9d0135e579c6b3b252921489;hb=a5e8a69dec467cc7d938cc3d92acb218b04486a9;hp=8160b7d1c7eed5e5134d4731288d66bb4adfc05a;hpb=54e374f27253c4a714fd4a640f9def1f2aa21d79;p=ardour.git diff --git a/libs/ardour/monitor_processor.cc b/libs/ardour/monitor_processor.cc index 8160b7d1c7..56d8f879d6 100644 --- a/libs/ardour/monitor_processor.cc +++ b/libs/ardour/monitor_processor.cc @@ -18,7 +18,6 @@ */ #include "pbd/error.h" -#include "pbd/locale_guard.h" #include "pbd/xml++.h" #include "ardour/amp.h" @@ -219,10 +218,9 @@ MonitorProcessor::set_state (const XMLNode& node, int version) } XMLNode& -MonitorProcessor::state (bool full) +MonitorProcessor::state () { - LocaleGuard lg; - XMLNode& node(Processor::state(full)); + XMLNode& node(Processor::state ()); /* this replaces any existing "type" property */ @@ -259,7 +257,7 @@ MonitorProcessor::state (bool full) } void -MonitorProcessor::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end_frame*/, double /*speed*/, pframes_t nframes, bool /*result_required*/) +MonitorProcessor::run (BufferSet& bufs, samplepos_t /*start_sample*/, samplepos_t /*end_sample*/, double /*speed*/, pframes_t nframes, bool /*result_required*/) { uint32_t chn = 0; gain_t target_gain; @@ -292,7 +290,7 @@ MonitorProcessor::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t / if (target_gain != _channels[chn]->current_gain || target_gain != GAIN_COEFF_UNITY) { - _channels[chn]->current_gain = Amp::apply_gain (*b, _session.nominal_frame_rate(), nframes, _channels[chn]->current_gain, target_gain); + _channels[chn]->current_gain = Amp::apply_gain (*b, _session.nominal_sample_rate(), nframes, _channels[chn]->current_gain, target_gain); } ++chn;