Fix crash when closing session, recursive mon-section removal
[ardour.git] / tools / bb / bb.h
index 4fcf477140bfc1af138766da4e2f0ed53ab53a34..07175b6664745713e7dce57f86a1ee3857bf9f67 100644 (file)
@@ -18,6 +18,10 @@ static const superclock_t superclock_ticks_per_second = 508032000; // 2^10 * 3^4
 inline superclock_t superclock_to_samples (superclock_t s, int sr) { return (s * sr) / superclock_ticks_per_second; }
 inline superclock_t samples_to_superclock (int samples, int sr) { return (samples * superclock_ticks_per_second) / sr; }
 
+namespace ARDOUR {
+class Session;
+}
+
 class BeatBox {
   public:
        BeatBox (int sample_rate);
@@ -78,6 +82,9 @@ class BeatBox {
                bool operator () (Event const * a, Event const * b) const;
        };
 
+       typedef std::vector<Event*> IncompleteNotes;
+       IncompleteNotes _incomplete_notes;
+
        typedef std::set<Event*,EventComparator> Events;
        Events _current_events;