add new member to a MIDI surface to allow receipt of data before surface is running (for device inquiries)
This commit is contained in:
parent
2d076cccb1
commit
22411416ca
@ -42,6 +42,7 @@ MIDISurface::MIDISurface (ARDOUR::Session& s, std::string const & namestr, std::
|
||||
, AbstractUI<MidiSurfaceRequest> (namestr)
|
||||
, with_pad_filter (use_pad_filter)
|
||||
, _in_use (false)
|
||||
, _data_required (false)
|
||||
, port_name_prefix (port_prefix)
|
||||
, _connection_state (ConnectionState (0))
|
||||
{
|
||||
@ -372,10 +373,10 @@ MIDISurface::midi_input_handler (IOCondition ioc, MIDI::Port* port)
|
||||
}
|
||||
|
||||
DEBUG_TRACE (DEBUG::MIDISurface, string_compose ("data available on %1\n", port->name()));
|
||||
if (_in_use) {
|
||||
if (_in_use || _data_required) {
|
||||
samplepos_t now = AudioEngine::instance()->sample_time();
|
||||
port->parse (now);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -90,6 +90,7 @@ class MIDISurface : public ARDOUR::ControlProtocol
|
||||
protected:
|
||||
bool with_pad_filter;
|
||||
bool _in_use;
|
||||
bool _data_required;
|
||||
std::string port_name_prefix;
|
||||
MIDI::Port* _input_port;
|
||||
MIDI::Port* _output_port;
|
||||
|
Loading…
Reference in New Issue
Block a user