From c1c5151ca40621d85ff67431e9ab841d141919a0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 1 Jun 2012 18:24:38 +0000 Subject: [PATCH] Prevent latency measurement output buffer being silenced by cycle_end, to fix port insert latency measurement (#4504). git-svn-id: svn://localhost/ardour2/branches/3.0@12530 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/audio_buffer.h | 1 + libs/ardour/port_insert.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/ardour/ardour/audio_buffer.h b/libs/ardour/ardour/audio_buffer.h index faa3de7685..6b771814db 100644 --- a/libs/ardour/ardour/audio_buffer.h +++ b/libs/ardour/ardour/audio_buffer.h @@ -173,6 +173,7 @@ public: void prepare () { _written = false; _silent = false; } bool written() const { return _written; } + void set_written(bool w) { _written = w; } private: bool _owns_data; diff --git a/libs/ardour/port_insert.cc b/libs/ardour/port_insert.cc index 05d0aa3c6f..aa2d1392f5 100644 --- a/libs/ardour/port_insert.cc +++ b/libs/ardour/port_insert.cc @@ -117,6 +117,7 @@ PortInsert::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, _mtdm->process (nframes, in, out); outbuf.set_is_silent (false); + outbuf.set_written (true); } return;