13
0

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

This commit is contained in:
Paul Davis 2024-06-20 21:19:36 -06:00
parent d71c67ce9c
commit 2a9d60a5c7
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)
{