Actually flush to disk continuously while MIDI loop recording.
authorDavid Robillard <d@drobilla.net>
Mon, 21 Jan 2013 02:01:59 +0000 (02:01 +0000)
committerDavid Robillard <d@drobilla.net>
Mon, 21 Jan 2013 02:01:59 +0000 (02:01 +0000)
commitb40464e67c431f073e6f755a62e92b930b07c18e
tree1fec93be34ddda2c462ab8879024f917e4e80db0
parent368214b47dfba5cf49fdd8851ca191cc7a6f665e
Actually flush to disk continuously while MIDI loop recording.

Previously, this calculation was based on the current transport frame and last
time, both absolute, with the effect that loop recording would flush the first
time and never again.

The fix is to keep track of the actual duration of the capture, ignoring the
transport position, and flush as that reaches the threshold.

git-svn-id: svn://localhost/ardour2/branches/3.0@13938 d708f5d6-7413-0410-9779-e7cbd77b26cf
libs/ardour/ardour/midi_diskstream.h
libs/ardour/midi_diskstream.cc