Fix MIDI recording.
git-svn-id: svn://localhost/ardour2/branches/3.0@5039 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
49f28513f5
commit
5513632422
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user