provide access to the trace parser (if any) for a MidiPort
This commit is contained in:
parent
d71c67ce9c
commit
2a9d60a5c7
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user