mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
NO-OP: change variable name and better alignment
This commit is contained in:
parent
67a09c19c8
commit
ec9120ab05
1 changed files with 9 additions and 10 deletions
|
|
@ -381,21 +381,20 @@ timecnt_t
|
||||||
SMFSource::write_unlocked (const WriterLock& lock,
|
SMFSource::write_unlocked (const WriterLock& lock,
|
||||||
MidiRingBuffer<samplepos_t>& source,
|
MidiRingBuffer<samplepos_t>& source,
|
||||||
timepos_t const & position,
|
timepos_t const & position,
|
||||||
timecnt_t const & cnt)
|
timecnt_t const & dur)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!_writing) {
|
if (!_writing) {
|
||||||
mark_streaming_write_started (lock);
|
mark_streaming_write_started (lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
samplepos_t time;
|
samplepos_t time;
|
||||||
const samplepos_t pos_samples = position.samples();
|
const samplepos_t pos_samples = position.samples();
|
||||||
const samplecnt_t cnt_samples = cnt.samples();
|
const samplecnt_t dur_samples = dur.samples();
|
||||||
Evoral::EventType type;
|
Evoral::EventType type;
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
|
size_t buf_capacity = 4;
|
||||||
size_t buf_capacity = 4;
|
uint8_t* buf = (uint8_t*) malloc (buf_capacity);
|
||||||
uint8_t* buf = (uint8_t*)malloc(buf_capacity);
|
|
||||||
|
|
||||||
if (_model && !_model->writing()) {
|
if (_model && !_model->writing()) {
|
||||||
_model->start_write();
|
_model->start_write();
|
||||||
|
|
@ -410,8 +409,8 @@ SMFSource::write_unlocked (const WriterLock& lock,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((cnt != timecnt_t::max (cnt.time_domain())) &&
|
if ((dur != timecnt_t::max (dur.time_domain())) &&
|
||||||
(time > pos_samples + _capture_length + cnt_samples)) {
|
(time > pos_samples + _capture_length + dur_samples)) {
|
||||||
/* The diskstream doesn't want us to write everything, and this
|
/* The diskstream doesn't want us to write everything, and this
|
||||||
event is past the end of this block, so we're done for now. */
|
event is past the end of this block, so we're done for now. */
|
||||||
break;
|
break;
|
||||||
|
|
@ -457,7 +456,7 @@ SMFSource::write_unlocked (const WriterLock& lock,
|
||||||
Evoral::SMF::flush ();
|
Evoral::SMF::flush ();
|
||||||
free (buf);
|
free (buf);
|
||||||
|
|
||||||
return cnt;
|
return dur;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue