diff options
author | Carl Hetherington <carl@carlh.net> | 2011-10-31 21:17:08 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-10-31 21:17:08 +0000 |
commit | 5dba72c874def27bef3ba3fe7a5cf2414e77aadb (patch) | |
tree | d4a41d2aca384122422d72a850b19ef46627488e /libs/ardour/track.cc | |
parent | d47e9247dfba27d198b8a0c43cef5553fc40745d (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.cc | 5 |
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 |