More complete (but still incomplete) LV2 persist implementation.
[ardour.git] / libs / ardour / session_events.cc
index 8818436ed76081b01b77a0f47bdba0108a07b7aa..2e30c4a8f1ac1dea917134e71158043a203f0d63 100644 (file)
@@ -46,7 +46,7 @@ SessionEvent::init_event_pool ()
 }
 
 void
-SessionEvent::create_per_thread_pool (const std::string& name, unsigned long nitems)
+SessionEvent::create_per_thread_pool (const std::string& name, uint32_t nitems)
 {
        /* this is a per-thread call that simply creates a thread-private ptr to
           a CrossThreadPool for use by this thread whenever events are allocated/released
@@ -69,7 +69,7 @@ SessionEvent::operator delete (void *ptr, size_t /*size*/)
 {
        Pool* p = pool->per_thread_pool ();
        SessionEvent* ev = static_cast<SessionEvent*> (ptr);
-       
+
        if (p == ev->own_pool) {
                p->release (ptr);
        } else {
@@ -78,21 +78,21 @@ SessionEvent::operator delete (void *ptr, size_t /*size*/)
 }
 
 void
-SessionEventManager::add_event (nframes64_t frame, SessionEvent::Type type, nframes64_t target_frame)
+SessionEventManager::add_event (framepos_t frame, SessionEvent::Type type, framepos_t target_frame)
 {
        SessionEvent* ev = new SessionEvent (type, SessionEvent::Add, frame, target_frame, 0);
        queue_event (ev);
 }
 
 void
-SessionEventManager::remove_event (nframes64_t frame, SessionEvent::Type type)
+SessionEventManager::remove_event (framepos_t frame, SessionEvent::Type type)
 {
        SessionEvent* ev = new SessionEvent (type, SessionEvent::Remove, frame, 0, 0);
        queue_event (ev);
 }
 
 void
-SessionEventManager::replace_event (SessionEvent::Type type, nframes64_t frame, nframes64_t target)
+SessionEventManager::replace_event (SessionEvent::Type type, framepos_t frame, framepos_t target)
 {
        SessionEvent* ev = new SessionEvent (type, SessionEvent::Replace, frame, target, 0);
        queue_event (ev);