Make SMF::append_event_delta take a buffer and a size rather than an Event (no point, more generic, etc.).

git-svn-id: svn://localhost/ardour2/branches/3.0@4567 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-02-14 22:52:38 +00:00
parent ea37584cac
commit d0cc3120ae
3 changed files with 12 additions and 18 deletions

View file

@ -303,7 +303,7 @@ SMFSource::append_event_unlocked(EventTimeUnit unit, const Evoral::Event<double>
delta_time = (uint32_t)((ev.time() - last_event_time()) * ppqn());
}
Evoral::SMF<double>::append_event_delta(delta_time, ev);
Evoral::SMF<double>::append_event_delta(delta_time, ev.size(), ev.buffer());
_last_ev_time = ev.time();
_write_data_count += ev.size();
@ -619,7 +619,6 @@ SMFSource::load_model(bool lock, bool force_reload)
return;
}
if (lock) {
Glib::Mutex::Lock lm (_lock);
}