From 4885f29be158999626eb6dfa5507fe2258d388b0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 8 Jul 2010 01:00:46 +0000 Subject: Trim midi++ port code to either do in or out, but not both in the same object. git-svn-id: svn://localhost/ardour2/branches/3.0@7391 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/midi++2/mmc.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libs/midi++2/mmc.cc') diff --git a/libs/midi++2/mmc.cc b/libs/midi++2/mmc.cc index 406fd0ef19..69bdabf1e5 100644 --- a/libs/midi++2/mmc.cc +++ b/libs/midi++2/mmc.cc @@ -202,13 +202,13 @@ MachineControl::MachineControl (jack_client_t* jack) _receive_device_id = 0; _send_device_id = 0x7f; - _input_port = Manager::instance()->add_port (new Port ("MMC", O_RDONLY, jack)); - _output_port = Manager::instance()->add_port (new Port ("MMC", O_WRONLY, jack)); + _input_port = Manager::instance()->add_port (new Port ("MMC in", Port::IsInput, jack)); + _output_port = Manager::instance()->add_port (new Port ("MMC out", Port::IsOutput, jack)); - _input_port->input()->mmc.connect_same_thread (port_connections, boost::bind (&MachineControl::process_mmc_message, this, _1, _2, _3)); - _input_port->input()->start.connect_same_thread (port_connections, boost::bind (&MachineControl::spp_start, this, _1, _2)); - _input_port->input()->contineu.connect_same_thread (port_connections, boost::bind (&MachineControl::spp_continue, this, _1, _2)); - _input_port->input()->stop.connect_same_thread (port_connections, boost::bind (&MachineControl::spp_stop, this, _1, _2)); + _input_port->parser()->mmc.connect_same_thread (port_connections, boost::bind (&MachineControl::process_mmc_message, this, _1, _2, _3)); + _input_port->parser()->start.connect_same_thread (port_connections, boost::bind (&MachineControl::spp_start, this, _1, _2)); + _input_port->parser()->contineu.connect_same_thread (port_connections, boost::bind (&MachineControl::spp_continue, this, _1, _2)); + _input_port->parser()->stop.connect_same_thread (port_connections, boost::bind (&MachineControl::spp_stop, this, _1, _2)); } void -- cgit v1.2.3