Remove unused method.
[ardour.git] / libs / ardour / monitor_processor.cc
index 6faf46a64de858f069d0a069c6092bb4a3c65f62..4f204031acaea4c7397efcf3d148677f44ba20e5 100644 (file)
@@ -18,7 +18,7 @@ using namespace std;
 /* specialize for bool because of set_value() semantics */
 
 namespace ARDOUR {
-        template<> void MPControl<bool>::set_value (float v) {
+        template<> void MPControl<bool>::set_value (double v) {
                 bool newval = fabs (v) >= 0.5;
                 if (newval != _value) {
                         _value = newval;
@@ -245,7 +245,7 @@ MonitorProcessor::state (bool full)
 }
 
 void
-MonitorProcessor::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*end_frame*/, nframes_t nframes, bool /*result_required*/)
+MonitorProcessor::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end_frame*/, pframes_t nframes, bool /*result_required*/)
 {
         uint32_t chn = 0;
         gain_t target_gain;
@@ -275,22 +275,6 @@ MonitorProcessor::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*e
                                 target_gain = 0.0;
                         }
                 }
-
-                DEBUG_TRACE (DEBUG::Monitor, 
-                             string_compose("channel %1 SB %12 sb %2 gc %3 gd %4 cd %5 dl %6 cp %7 cc %8 cs %9 sc %10 TG %11\n", 
-                                            chn, 
-                                            solo_boost,
-                                            global_cut,
-                                            global_dim,
-                                            _channels[chn]->dim,
-                                            dim_level,
-                                            _channels[chn]->polarity,
-                                            _channels[chn]->cut,
-                                            _channels[chn]->soloed,
-                                            solo_cnt,
-                                            target_gain, 
-                                            (float) _solo_boost_level.val()
-                                     ));
                 
                 if (target_gain != _channels[chn]->current_gain || target_gain != 1.0f) {
 
@@ -313,7 +297,7 @@ MonitorProcessor::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*e
 
                 /* scale the first channel */
 
-                for (nframes_t n = 0; n < nframes; ++n) {
+                for (pframes_t n = 0; n < nframes; ++n) {
                         buf[n] *= scale;
                 }
 
@@ -323,7 +307,7 @@ MonitorProcessor::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*e
                 for (; b != bufs.audio_end(); ++b) {
                         AudioBuffer& ob (*b);
                         Sample* obuf = ob.data ();
-                        for (nframes_t n = 0; n < nframes; ++n) {
+                        for (pframes_t n = 0; n < nframes; ++n) {
                                 buf[n] += obuf[n] * scale;
                         }
                 }