From 5dba72c874def27bef3ba3fe7a5cf2414e77aadb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 31 Oct 2011 21:17:08 +0000 Subject: Take commit() out of process() in both types of diskstream, and call commit() where appropriate. git-svn-id: svn://localhost/ardour2/branches/3.0@10361 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/track.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/ardour/track.cc') diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 5370d8197c..c140baaed6 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -378,7 +378,10 @@ Track::silent_roll (pframes_t nframes, framepos_t /*start_frame*/, framepos_t /* silence (nframes); - return _diskstream->process (_session.transport_frame(), nframes, need_butler); + framecnt_t playback_distance; + int const dret = _diskstream->process (_session.transport_frame(), nframes, playback_distance); + need_butler = _diskstream->commit (playback_distance); + return dret; } void -- cgit v1.2.3