13
0

provide access to the trace parser (if any) for a MidiPort

This commit is contained in:
Paul Davis 2024-06-21 20:31:29 -06:00
parent df7fe4fb91
commit c94ca79798
2 changed files with 7 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class LIBARDOUR_API MidiPort : public Port {
MidiBuffer& get_midi_buffer (pframes_t nframes);
void set_trace (std::weak_ptr<MIDI::Parser> trace_parser);
std::shared_ptr<MIDI::Parser> trace_parser() const;
typedef boost::function<bool(MidiBuffer&,MidiBuffer&)> MidiFilter;
void set_inbound_filter (MidiFilter);

View File

@ -395,6 +395,12 @@ MidiPort::set_trace (std::weak_ptr<MIDI::Parser> p)
_trace_parser = p;
}
std::shared_ptr<MIDI::Parser>
MidiPort::trace_parser() const
{
return _trace_parser.lock();
}
void
MidiPort::set_input_active (bool yn)
{