Prevent latency measurement output buffer being silenced by
authorCarl Hetherington <carl@carlh.net>
Fri, 1 Jun 2012 18:24:38 +0000 (18:24 +0000)
committerCarl Hetherington <carl@carlh.net>
Fri, 1 Jun 2012 18:24:38 +0000 (18:24 +0000)
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
libs/ardour/port_insert.cc

index faa3de768593785cb80e0a59c8928fe1c42ea715..6b771814db67d20f2bc1f4c40934a70522634e9f 100644 (file)
@@ -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;
index 05d0aa3c6f2ba06aa85531328271f07d222a7a18..aa2d1392f5644768aaf6d602e4b398891b21133c 100644 (file)
@@ -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;