diff options
Diffstat (limited to 'libs/ardour/ardour/midi_source.h')
-rw-r--r-- | libs/ardour/ardour/midi_source.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/ardour/ardour/midi_source.h b/libs/ardour/ardour/midi_source.h index 8a0c13681d..156f3dbfa0 100644 --- a/libs/ardour/ardour/midi_source.h +++ b/libs/ardour/ardour/midi_source.h @@ -154,8 +154,12 @@ class LIBARDOUR_API MidiSource : virtual public Source, public boost::enable_sha virtual void load_model(const Glib::Threads::Mutex::Lock& lock, bool force_reload=false) = 0; virtual void destroy_model(const Glib::Threads::Mutex::Lock& lock) = 0; - /** Reset cached information (like iterators) when things have changed. */ - void invalidate(const Glib::Threads::Mutex::Lock& lock); + /** Reset cached information (like iterators) when things have changed. + * @param lock Source lock, which must be held by caller. + * @param notes If non-NULL, currently active notes are added to this set. + */ + void invalidate(const Glib::Threads::Mutex::Lock& lock, + std::set<Evoral::Sequence<Evoral::Beats>::WeakNotePtr>* notes=NULL); void set_note_mode(const Glib::Threads::Mutex::Lock& lock, NoteMode mode); |