summaryrefslogtreecommitdiff
path: root/libs/midi++2/port.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-10 16:27:01 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-10 16:27:01 +0000
commit893b468858a05f7ad9c344786e89d1414677c169 (patch)
treecae982983fc7720ffb6465cc60103b30838e020a /libs/midi++2/port.cc
parenta8094bb49c61d18aa0e02585f7e912f6284a3ef8 (diff)
add "centrally-parsed" property to MIDI::Port so that we can avoid the MidiUI loop from handling input for *all* MIDI ports created
git-svn-id: svn://localhost/ardour2/branches/3.0@11871 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/port.cc')
-rw-r--r--libs/midi++2/port.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/midi++2/port.cc b/libs/midi++2/port.cc
index 378548ca03..b5a16eef01 100644
--- a/libs/midi++2/port.cc
+++ b/libs/midi++2/port.cc
@@ -51,10 +51,11 @@ Port::Port (string const & name, Flags flags, jack_client_t* jack_client)
, _jack_client (jack_client)
, _jack_port (0)
, _last_read_index (0)
- , xthread (true)
, output_fifo (512)
, input_fifo (1024)
+ , xthread (true)
, _flags (flags)
+ , _centrally_parsed (true)
{
assert (jack_client);
init (name, flags);
@@ -66,9 +67,10 @@ Port::Port (const XMLNode& node, jack_client_t* jack_client)
, _jack_client (jack_client)
, _jack_port (0)
, _last_read_index (0)
- , xthread (true)
, output_fifo (512)
, input_fifo (1024)
+ , xthread (true)
+ , _centrally_parsed (true)
{
assert (jack_client);