Fix double call error in midi tracer handling
Only basic midi ports use the _trace_parser and they enter here via cycle_start which will pass the _trace_parser to this function. No need to double up calls.
This commit is contained in:
parent
5adbcd0673
commit
89eab2714f
@ -201,10 +201,6 @@ MidiPort::read_and_parse_entire_midi_buffer_with_no_speed_adjustment (pframes_t
|
|||||||
|
|
||||||
parser.set_timestamp (now + timestamp);
|
parser.set_timestamp (now + timestamp);
|
||||||
|
|
||||||
if (_trace_parser) {
|
|
||||||
_trace_parser->set_timestamp (now + timestamp);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* During this parsing stage, signals will be emitted from the
|
/* During this parsing stage, signals will be emitted from the
|
||||||
* Parser, which will update anything connected to it.
|
* Parser, which will update anything connected to it.
|
||||||
*
|
*
|
||||||
@ -218,20 +214,10 @@ MidiPort::read_and_parse_entire_midi_buffer_with_no_speed_adjustment (pframes_t
|
|||||||
parser.scanner (buf[1]);
|
parser.scanner (buf[1]);
|
||||||
parser.scanner (0x40); /* default (off) velocity */
|
parser.scanner (0x40); /* default (off) velocity */
|
||||||
|
|
||||||
if (_trace_parser) {
|
|
||||||
_trace_parser->scanner (0x80 | (buf[0] & 0x0F));
|
|
||||||
_trace_parser->scanner (buf[1]);
|
|
||||||
_trace_parser->scanner (0x40);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
for (size_t n = 0; n < size; ++n) {
|
for (size_t n = 0; n < size; ++n) {
|
||||||
parser.scanner (buf[n]);
|
parser.scanner (buf[n]);
|
||||||
}
|
}
|
||||||
if (_trace_parser) {
|
|
||||||
for (size_t n = 0; n < size; ++n) {
|
|
||||||
_trace_parser->scanner (buf[n]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user