diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-20 18:13:03 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-20 18:13:03 +0000 |
commit | c99738d88e8a2ad806b219b9f3614a6b55b6bf37 (patch) | |
tree | d506a27d404e1b63063372ebe2f63aacc7e6ebb4 /libs/evoral/evoral | |
parent | 8c7fda11cf47cd8dd04c6eabffc437dd942403d5 (diff) |
try to fix data loss at end of a capture pass for MIDI - add a new virtual method to MidiSource that specifies what should be done with stuck notes, remove duplicate(i hope) _last_flush_frame from SMFSource that mirrored, more or less, MidiSource::_last_write_end; use new virtual method when stopping after capture.
git-svn-id: svn://localhost/ardour2/branches/3.0@9910 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/evoral')
-rw-r--r-- | libs/evoral/evoral/Sequence.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/evoral/evoral/Sequence.hpp b/libs/evoral/evoral/Sequence.hpp index 298ef48e52..98d4b190b1 100644 --- a/libs/evoral/evoral/Sequence.hpp +++ b/libs/evoral/evoral/Sequence.hpp @@ -97,7 +97,14 @@ public: void start_write(); bool writing() const { return _writing; } - void end_write (Time when=0, bool delete_stuck=false, bool resolve=false); + + enum StuckNoteOption { + Relax, + DeleteStuckNotes, + ResolveStuckNotes + }; + + void end_write (StuckNoteOption, Time when = 0); void append(const Event<Time>& ev, Evoral::event_id_t evid); |