13
0

Fix MIDI recording.

git-svn-id: svn://localhost/ardour2/branches/3.0@5039 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-05-04 19:58:48 +00:00
parent 49f28513f5
commit 5513632422
2 changed files with 3 additions and 1 deletions

View File

@ -78,11 +78,13 @@ MidiModel::DeltaCommand::DeltaCommand(boost::shared_ptr<MidiModel> m, const std:
, _model(m)
, _name(name)
{
assert(_model);
}
MidiModel::DeltaCommand::DeltaCommand(boost::shared_ptr<MidiModel> m, const XMLNode& node)
: _model(m)
{
assert(_model);
set_state(node);
}

View File

@ -168,7 +168,7 @@ MidiSource::midi_write (MidiRingBuffer<nframes_t>& source, sframes_t source_star
{
Glib::Mutex::Lock lm (_lock);
const nframes_t ret = write_unlocked (source, source_start, duration);
_last_write_end = source_start + duration;
_last_write_end += duration;
return ret;
}