diff options
Diffstat (limited to 'src/engine/JackMidiDriver.hpp')
-rw-r--r-- | src/engine/JackMidiDriver.hpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/engine/JackMidiDriver.hpp b/src/engine/JackMidiDriver.hpp index d0e81396..9d20c215 100644 --- a/src/engine/JackMidiDriver.hpp +++ b/src/engine/JackMidiDriver.hpp @@ -1,15 +1,15 @@ /* This file is part of Ingen. * Copyright (C) 2007 Dave Robillard <http://drobilla.net> - * + * * Ingen is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * + * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA @@ -46,7 +46,7 @@ public: void pre_process(ProcessContext& context); void post_process(ProcessContext& context); - + void set_name(const std::string& name) { jack_port_set_name(_jack_port, name.c_str()); }; private: @@ -74,19 +74,19 @@ public: void deactivate(); void enable() { _is_enabled = true; } void disable() { _is_enabled = false; } - + bool is_activated() const { return _is_activated; } bool is_enabled() const { return _is_enabled; } - + void pre_process(ProcessContext& context); void post_process(ProcessContext& context); JackMidiPort* create_port(DuplexPort* patch_port) { return new JackMidiPort(this, patch_port); } - + void add_port(DriverPort* port); DriverPort* driver_port(const Raul::Path& path); - + Raul::List<DriverPort*>::Node* remove_port(const Raul::Path& path); jack_client_t* jack_client() { return _client; } @@ -96,12 +96,12 @@ private: uint32_t _midi_event_type; Raul::List<JackMidiPort*> _ports; - + friend class JackMidiPort; - + void add_output(Raul::List<JackMidiPort*>::Node* port); Raul::List<JackMidiPort*>::Node* remove_output(JackMidiPort* port); - + // MIDI thread static void* process_midi_in(void* me); |