From f796c0f1775aa98e3da196dfb8addb3ce9900929 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 28 Apr 2010 12:03:16 +0000 Subject: [PATCH] remove some silent-buffer-detecting debugging code git-svn-id: svn://localhost/ardour2/branches/3.0@7011 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/delivery.cc | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index 86a2f99c58..e2928c1f5b 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -290,30 +290,6 @@ Delivery::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nfra if (bufs.count().n_audio() > 0 && ports.count().n_audio () > 0) { _output->copy_to_outputs (bufs, DataType::AUDIO, nframes, _output_offset); - - bool silent; - - for (uint32_t b = 0; b < bufs.count().n_audio(); ++b) { - - AudioBuffer& ab (bufs.get_audio (b)); - Sample* s = ab.data(); - nframes_t n; - - silent = false; - - for (n = 0; nframes < nframes; ++n) { - if (s[n] != 0) { - break; - } - } - if (n == nframes) { - silent = true; - } - - if (silent) { - cerr << _name << ": Buffer " << b << " is silent\n"; - } - } } if (bufs.count().n_midi() > 0 && ports.count().n_midi () > 0) {