From aa473d19780f2670bb828835ee7ce970571016cf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 May 2009 16:04:14 +0000 Subject: Strip trailing whitespace. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1999 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/NodeBase.hpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/engine/NodeBase.hpp') diff --git a/src/engine/NodeBase.hpp b/src/engine/NodeBase.hpp index 7c0293f9..d1fbe147 100644 --- a/src/engine/NodeBase.hpp +++ b/src/engine/NodeBase.hpp @@ -1,15 +1,15 @@ /* This file is part of Ingen. * Copyright (C) 2007 Dave Robillard - * + * * 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 @@ -58,10 +58,10 @@ public: virtual void activate(); virtual void deactivate(); bool activated() { return _activated; } - + virtual bool prepare_poly(uint32_t poly); virtual bool apply_poly(Raul::Maid& maid, uint32_t poly); - + virtual void reset_input_ready(); virtual bool process_lock(); virtual void process_unlock(); @@ -69,54 +69,54 @@ public: virtual unsigned n_inputs_ready() const { return _n_inputs_ready.get(); } virtual void learn() {} - + virtual void message_process(MessageContext& context, uint32_t* ins, uint32_t* outs) {} virtual void pre_process(ProcessContext& context); virtual void process(ProcessContext& context) = 0; virtual void post_process(ProcessContext& context); - + virtual void set_port_buffer(uint32_t voice, uint32_t port_num, Buffer* buf) {} - + virtual void set_buffer_size(size_t size); - + SampleRate sample_rate() const { return _srate; } size_t buffer_size() const { return _buffer_size; } uint32_t num_ports() const { return _ports ? _ports->size() : 0; } uint32_t polyphony() const { return _polyphony; } bool traversed() const { return _traversed; } void traversed(bool b) { _traversed = b; } - + virtual Shared::Port* port(uint32_t index) const; virtual PortImpl* port_impl(uint32_t index) const { return (*_ports)[index]; } - + /* These are NOT to be used in the audio thread! * The providers and dependants in CompiledNode are for that */ Raul::List* providers() { return _providers; } void providers(Raul::List* l) { _providers = l; } - + Raul::List* dependants() { return _dependants; } void dependants(Raul::List* l) { _dependants = l; } - + virtual const Shared::Plugin* plugin() const; virtual PluginImpl* plugin_impl() const { return _plugin; } virtual void plugin(PluginImpl* pi) { _plugin = pi; } - + /** A node's parent is always a patch, so static cast should be safe */ inline PatchImpl* parent_patch() const { return (PatchImpl*)_parent; } - + protected: virtual void signal_input_ready(); - + PluginImpl* _plugin; uint32_t _polyphony; SampleRate _srate; size_t _buffer_size; bool _activated; - + bool _traversed; ///< Flag for process order algorithm Raul::Semaphore _input_ready; ///< Parallelism: input ready signal Raul::AtomicInt _process_lock; ///< Parallelism: Waiting on inputs 'lock' -- cgit v1.2.1