mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Improve GUI display during MIDI record in various ways.
git-svn-id: svn://localhost/ardour2/branches/3.0@7875 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
22ffdfa6ad
commit
8222348761
6 changed files with 35 additions and 26 deletions
|
|
@ -201,7 +201,10 @@ SMFSource::read_unlocked (Evoral::EventSink<nframes_t>& destination, framepos_t
|
|||
return duration;
|
||||
}
|
||||
|
||||
/** All stamps in audio frames */
|
||||
/** Write data to this source from a MidiRingBuffer.
|
||||
* @param source Buffer to read from.
|
||||
* @param position This source's start position in session frames.
|
||||
*/
|
||||
nframes_t
|
||||
SMFSource::write_unlocked (MidiRingBuffer<nframes_t>& source, framepos_t position, nframes_t duration)
|
||||
{
|
||||
|
|
@ -243,6 +246,7 @@ SMFSource::write_unlocked (MidiRingBuffer<nframes_t>& source, framepos_t positio
|
|||
break;
|
||||
}
|
||||
|
||||
/* convert from session time to time relative to the source start */
|
||||
assert(time >= position);
|
||||
time -= position;
|
||||
|
||||
|
|
@ -262,7 +266,7 @@ SMFSource::write_unlocked (MidiRingBuffer<nframes_t>& source, framepos_t positio
|
|||
Evoral::SMF::flush();
|
||||
free(buf);
|
||||
|
||||
ViewDataRangeReady(position + _last_write_end, duration); /* EMIT SIGNAL */
|
||||
ViewDataRangeReady (_last_write_end, duration); /* EMIT SIGNAL */
|
||||
|
||||
return duration;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue