From f4ebb5995da8e7d6af7c8c74b1797140df53b3c0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 18 Oct 2019 03:40:52 +0200 Subject: [PATCH] NO-OP: indent, tabs/whitespace fixes --- libs/ardour/ardour/midiport_manager.h | 94 +++++++++++++++++---------- libs/ardour/midiport_manager.cc | 6 +- 2 files changed, 61 insertions(+), 39 deletions(-) diff --git a/libs/ardour/ardour/midiport_manager.h b/libs/ardour/ardour/midiport_manager.h index b59aaf24be..58ddf7e5ba 100644 --- a/libs/ardour/ardour/midiport_manager.h +++ b/libs/ardour/ardour/midiport_manager.h @@ -25,8 +25,8 @@ #include "pbd/rcu.h" -#include "midi++/types.h" #include "midi++/port.h" +#include "midi++/types.h" #include "ardour/libardour_visibility.h" #include "ardour/midi_port.h" @@ -37,12 +37,13 @@ namespace ARDOUR { class MidiPort; class Port; -class LIBARDOUR_API MidiPortManager { - public: - MidiPortManager(); - virtual ~MidiPortManager (); +class LIBARDOUR_API MidiPortManager +{ +public: + MidiPortManager (); + virtual ~MidiPortManager (); - /* Ports used for control. These are read/written to outside of the + /* Ports used for control. These are read/written to outside of the * process callback (asynchronously with respect to when data * actually arrives). * @@ -52,44 +53,67 @@ class LIBARDOUR_API MidiPortManager { * callback. */ - boost::shared_ptr midi_input_port () const { return _midi_in; } - boost::shared_ptr midi_output_port () const { return _midi_out; } + boost::shared_ptr midi_input_port () const + { + return _midi_in; + } + boost::shared_ptr midi_output_port () const + { + return _midi_out; + } - boost::shared_ptr mmc_input_port() const { return boost::dynamic_pointer_cast(_mmc_in); } - boost::shared_ptr mmc_output_port() const { return boost::dynamic_pointer_cast(_mmc_out); } + boost::shared_ptr mmc_input_port () const + { + return boost::dynamic_pointer_cast (_mmc_in); + } + boost::shared_ptr mmc_output_port () const + { + return boost::dynamic_pointer_cast (_mmc_out); + } - boost::shared_ptr scene_input_port() const { return boost::dynamic_pointer_cast(_scene_in); } - boost::shared_ptr scene_output_port() const { return boost::dynamic_pointer_cast(_scene_out); } + boost::shared_ptr scene_input_port () const + { + return boost::dynamic_pointer_cast (_scene_in); + } + boost::shared_ptr scene_output_port () const + { + return boost::dynamic_pointer_cast (_scene_out); + } - /* Ports used to send synchronization. These have their output handled inside the - * process callback. - */ + /* Ports used to send synchronization. These have their output handled inside the + * process callback. + */ - boost::shared_ptr mtc_output_port() const { return _mtc_output_port; } - boost::shared_ptr midi_clock_output_port() const { return _midi_clock_output_port; } + boost::shared_ptr mtc_output_port () const + { + return _mtc_output_port; + } + boost::shared_ptr midi_clock_output_port () const + { + return _midi_clock_output_port; + } - void set_midi_port_states (const XMLNodeList&); - std::list get_midi_port_states () const; + void set_midi_port_states (const XMLNodeList&); + std::list get_midi_port_states () const; - PBD::Signal0 PortsChanged; + PBD::Signal0 PortsChanged; - protected: - /* asynchronously handled ports: ARDOUR::AsyncMIDIPort */ - boost::shared_ptr _midi_in; - boost::shared_ptr _midi_out; - boost::shared_ptr _mmc_in; - boost::shared_ptr _mmc_out; - boost::shared_ptr _scene_in; - boost::shared_ptr _scene_out; +protected: + /* asynchronously handled ports: ARDOUR::AsyncMIDIPort */ + boost::shared_ptr _midi_in; + boost::shared_ptr _midi_out; + boost::shared_ptr _mmc_in; + boost::shared_ptr _mmc_out; + boost::shared_ptr _scene_in; + boost::shared_ptr _scene_out; - /* synchronously handled ports: ARDOUR::MidiPort */ - boost::shared_ptr _mtc_output_port; - boost::shared_ptr _midi_clock_output_port; - - void create_ports (); + /* synchronously handled ports: ARDOUR::MidiPort */ + boost::shared_ptr _mtc_output_port; + boost::shared_ptr _midi_clock_output_port; + void create_ports (); }; -} // namespace MIDI +} // namespace ARDOUR -#endif // __midi_port_manager_h__ +#endif diff --git a/libs/ardour/midiport_manager.cc b/libs/ardour/midiport_manager.cc index 2fafe2ef3f..0033c80bb0 100644 --- a/libs/ardour/midiport_manager.cc +++ b/libs/ardour/midiport_manager.cc @@ -62,8 +62,7 @@ MidiPortManager::~MidiPortManager () void MidiPortManager::create_ports () { - /* this method is idempotent - */ + /* this method is idempotent */ if (_midi_in) { return; @@ -78,8 +77,7 @@ MidiPortManager::create_ports () _scene_in = AudioEngine::instance()->register_input_port (DataType::MIDI, X_("Scene in"), true); _scene_out = AudioEngine::instance()->register_output_port (DataType::MIDI, X_("Scene out"), true); - /* Now register ports used to send positional sync data (MTC and MIDI Clock) - */ + /* Now register ports used to send positional sync data (MTC and MIDI Clock) */ boost::shared_ptr p;