summaryrefslogtreecommitdiff
path: root/libs/ardour/track.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-10-31 21:17:08 +0000
committerCarl Hetherington <carl@carlh.net>2011-10-31 21:17:08 +0000
commit5dba72c874def27bef3ba3fe7a5cf2414e77aadb (patch)
treed4a41d2aca384122422d72a850b19ef46627488e /libs/ardour/track.cc
parentd47e9247dfba27d198b8a0c43cef5553fc40745d (diff)
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
Diffstat (limited to 'libs/ardour/track.cc')
-rw-r--r--libs/ardour/track.cc5
1 files changed, 4 insertions, 1 deletions
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