diff options
author | David Robillard <d@drobilla.net> | 2011-04-16 19:02:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-16 19:02:36 +0000 |
commit | 9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2 (patch) | |
tree | 089c1366a567dfbf88c0473288236b276ef24bf6 /src/engine | |
parent | 987710474b824cb92d83ff6fa7a090f50e10756f (diff) | |
download | ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.tar.gz ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.tar.bz2 ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.zip |
Squeeze blank lines and delete trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3152 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
123 files changed, 4 insertions, 595 deletions
diff --git a/src/engine/AudioBuffer.cpp b/src/engine/AudioBuffer.cpp index 17cfeca9..7b6b0a02 100644 --- a/src/engine/AudioBuffer.cpp +++ b/src/engine/AudioBuffer.cpp @@ -35,7 +35,6 @@ namespace Ingen { using namespace Shared; - AudioBuffer::AudioBuffer(BufferFactory& bufs, Shared::PortType type, size_t size) : ObjectBuffer(bufs, size) , _state(OK) @@ -70,7 +69,6 @@ AudioBuffer::AudioBuffer(BufferFactory& bufs, Shared::PortType type, size_t size clear(); } - void AudioBuffer::resize(size_t size) { @@ -81,7 +79,6 @@ AudioBuffer::resize(size_t size) clear(); } - /** Empty (ie zero) the buffer. */ void @@ -92,7 +89,6 @@ AudioBuffer::clear() _state = OK; } - /** Set value of buffer to @a val after @a start_sample. * * The Buffer will handle setting the intial portion of the buffer to the @@ -122,7 +118,6 @@ AudioBuffer::set_value(Sample val, FrameTime cycle_start, FrameTime time) _set_value = val; } - /** Set a block of buffer to @a val. * * @a start_sample and @a end_sample define the inclusive range to be set. @@ -140,7 +135,6 @@ AudioBuffer::set_block(Sample val, size_t start_offset, size_t end_offset) buf[i] = val; } - /** Copy a block of @a src into buffer. * * @a start_sample and @a end_sample define the inclusive range to be set. @@ -160,7 +154,6 @@ AudioBuffer::copy(const Sample* src, size_t start_sample, size_t end_sample) buf[i] = src[i]; } - void AudioBuffer::copy(Context& context, const Buffer* src) { @@ -193,7 +186,6 @@ AudioBuffer::copy(Context& context, const Buffer* src) } } - void AudioBuffer::prepare_read(Context& context) { @@ -212,5 +204,4 @@ AudioBuffer::prepare_read(Context& context) } } - } // namespace Ingen diff --git a/src/engine/AudioBuffer.hpp b/src/engine/AudioBuffer.hpp index 38623696..f2ed0e7b 100644 --- a/src/engine/AudioBuffer.hpp +++ b/src/engine/AudioBuffer.hpp @@ -29,7 +29,6 @@ using namespace std; namespace Ingen { - class AudioBuffer : public ObjectBuffer { public: @@ -75,7 +74,6 @@ private: FrameTime _set_time; ///< Time _set_value was set (to reset next cycle) }; - /** Accumulate a block of @a src into buffer. */ inline void @@ -104,7 +102,6 @@ AudioBuffer::accumulate(Context& context, const AudioBuffer* const src) } } - } // namespace Ingen #endif // INGEN_ENGINE_AUDIOBUFFER_HPP diff --git a/src/engine/Buffer.hpp b/src/engine/Buffer.hpp index 76d47e26..7e1623cb 100644 --- a/src/engine/Buffer.hpp +++ b/src/engine/Buffer.hpp @@ -87,11 +87,9 @@ private: } // namespace Ingen - namespace boost { inline void intrusive_ptr_add_ref(Ingen::Buffer* b) { b->ref(); } inline void intrusive_ptr_release(Ingen::Buffer* b) { b->deref(); } } - #endif // INGEN_ENGINE_BUFFER_HPP diff --git a/src/engine/BufferFactory.cpp b/src/engine/BufferFactory.cpp index 0d2fc76e..c6c9422a 100644 --- a/src/engine/BufferFactory.cpp +++ b/src/engine/BufferFactory.cpp @@ -40,7 +40,6 @@ BufferFactory::BufferFactory(Engine& engine, SharedPtr<Shared::LV2URIMap> a_uris assert(_uris); } - BufferFactory::~BufferFactory() { free_list(_free_audio.get()); @@ -49,7 +48,6 @@ BufferFactory::~BufferFactory() free_list(_free_object.get()); } - void BufferFactory::free_list(Buffer* head) { @@ -59,21 +57,18 @@ BufferFactory::free_list(Buffer* head) free_list(next); } - void BufferFactory::set_block_length(SampleCount block_length) { _silent_buffer = create(PortType::AUDIO, audio_buffer_size(block_length)); } - size_t BufferFactory::audio_buffer_size(SampleCount nframes) { return sizeof(LV2_Atom) + sizeof(LV2_Atom_Vector) + (nframes * sizeof(float)); } - size_t BufferFactory::default_buffer_size(PortType type) { @@ -89,7 +84,6 @@ BufferFactory::default_buffer_size(PortType type) } } - BufferFactory::Ref BufferFactory::get(Shared::PortType type, size_t size, bool force_create) { @@ -120,7 +114,6 @@ BufferFactory::get(Shared::PortType type, size_t size, bool force_create) return Ref(try_head); } - BufferFactory::Ref BufferFactory::create(Shared::PortType type, size_t size) { @@ -153,7 +146,6 @@ BufferFactory::create(Shared::PortType type, size_t size) return Ref(buffer); } - void BufferFactory::recycle(Buffer* buf) { @@ -165,5 +157,4 @@ BufferFactory::recycle(Buffer* buf) } while (!head_ptr.compare_and_exchange(try_head, buf)); } - } // namespace Ingen diff --git a/src/engine/ClientBroadcaster.cpp b/src/engine/ClientBroadcaster.cpp index f83b56a6..f651d371 100644 --- a/src/engine/ClientBroadcaster.cpp +++ b/src/engine/ClientBroadcaster.cpp @@ -34,7 +34,6 @@ using Ingen::Shared::ClientInterface; namespace Ingen { - /** Register a client to receive messages over the notification band. */ void @@ -50,7 +49,6 @@ ClientBroadcaster::register_client(const URI& uri, ClientInterface* client) } } - /** Remove a client from the list of registered clients. * * @return true if client was found and removed. @@ -68,8 +66,6 @@ ClientBroadcaster::unregister_client(const URI& uri) return (erased > 0); } - - /** Looks up the client with the given source @a uri (which is used as the * unique identifier for registered clients). */ @@ -84,7 +80,6 @@ ClientBroadcaster::client(const URI& uri) } } - void ClientBroadcaster::send_plugins(const NodeFactory::Plugins& plugins) { @@ -92,7 +87,6 @@ ClientBroadcaster::send_plugins(const NodeFactory::Plugins& plugins) send_plugins_to((*c).second, plugins); } - void ClientBroadcaster::send_plugins_to(ClientInterface* client, const NodeFactory::Plugins& plugins) { @@ -106,7 +100,6 @@ ClientBroadcaster::send_plugins_to(ClientInterface* client, const NodeFactory::P client->transfer_end(); } - /** Send an object to all clients. * * @param o Object to send @@ -119,5 +112,4 @@ ClientBroadcaster::send_object(const GraphObjectImpl* o, bool recursive) ObjectSender::send_object((*i).second, o, recursive); } - } // namespace Ingen diff --git a/src/engine/ClientBroadcaster.hpp b/src/engine/ClientBroadcaster.hpp index 4d1a460d..ff0886a1 100644 --- a/src/engine/ClientBroadcaster.hpp +++ b/src/engine/ClientBroadcaster.hpp @@ -37,7 +37,6 @@ class PluginImpl; class PatchImpl; class ConnectionImpl; - /** Broadcaster for all clients. * * This is a ClientInterface that forwards all messages to all registered @@ -62,7 +61,6 @@ public: for (Clients::const_iterator i = _clients.begin(); i != _clients.end(); ++i) \ (*i).second->msg(__VA_ARGS__) - // CommonInterface void bundle_begin() { BROADCAST(bundle_begin); } @@ -122,7 +120,6 @@ private: Clients _clients; }; - } // namespace Ingen #endif // INGEN_ENGINE_CLIENTBROADCASTER_HPP diff --git a/src/engine/CompiledPatch.hpp b/src/engine/CompiledPatch.hpp index ab14ba4f..3bb23960 100644 --- a/src/engine/CompiledPatch.hpp +++ b/src/engine/CompiledPatch.hpp @@ -51,7 +51,6 @@ private: std::vector<NodeImpl*> _dependants; ///< Nodes this one's output ports are connected to }; - /** A patch ``compiled'' into a flat structure with the correct order so * the audio thread(s) can execute it without threading problems (since * the preprocessor thread modifies the graph). @@ -70,7 +69,6 @@ struct CompiledPatch : public std::vector<CompiledNode> std::vector<ConnectionImpl*> queued_connections; }; - } // namespace Ingen #endif // INGEN_ENGINE_COMPILEDPATCH_HPP diff --git a/src/engine/ConnectionImpl.cpp b/src/engine/ConnectionImpl.cpp index f58a8723..13829548 100644 --- a/src/engine/ConnectionImpl.cpp +++ b/src/engine/ConnectionImpl.cpp @@ -58,7 +58,6 @@ ConnectionImpl::ConnectionImpl(BufferFactory& bufs, PortImpl* src_port, PortImpl _queue = new Raul::RingBuffer(src_port->buffer_size() * 2); } - void ConnectionImpl::dump() const { @@ -68,7 +67,6 @@ ConnectionImpl::dump() const << "POLY: " << _src_port->poly() << " => " << _dst_port->poly() << endl; } - void ConnectionImpl::get_sources(Context& context, uint32_t voice, IntrusivePtr<Buffer>* srcs, uint32_t max_num_srcs, uint32_t& num_srcs) @@ -95,7 +93,6 @@ ConnectionImpl::get_sources(Context& context, uint32_t voice, } } - void ConnectionImpl::queue(Context& context) { @@ -122,7 +119,6 @@ ConnectionImpl::queue(Context& context) } } - bool ConnectionImpl::can_connect(const OutputPort* src, const InputPort* dst) { @@ -143,7 +139,7 @@ ConnectionImpl::can_connect(const OutputPort* src, const InputPort* dst) // Control => atom:Float32 Value || (src->is_a(PortType::CONTROL) && dst->supports(uris.atom_Float32)) - // Audio => atom:Vector Value + // Audio => atom:Vector Value || (src->is_a(PortType::AUDIO) && dst->supports(uris.atom_Vector)) // atom:Float32 Value => Control @@ -153,6 +149,5 @@ ConnectionImpl::can_connect(const OutputPort* src, const InputPort* dst) || (src->supports(uris.atom_Vector) && dst->is_a(PortType::AUDIO))); } - } // namespace Ingen diff --git a/src/engine/ConnectionImpl.hpp b/src/engine/ConnectionImpl.hpp index 09dd208a..74270407 100644 --- a/src/engine/ConnectionImpl.hpp +++ b/src/engine/ConnectionImpl.hpp @@ -38,7 +38,6 @@ class InputPort; class Buffer; class BufferFactory; - /** Represents a single inbound connection for an InputPort. * * This can be a group of ports (ie coming from a polyphonic Node) or @@ -104,7 +103,6 @@ protected: bool _pending_disconnection; }; - } // namespace Ingen #endif // INGEN_ENGINE_CONNECTIONIMPL_HPP diff --git a/src/engine/Context.hpp b/src/engine/Context.hpp index 035e2b3f..3dd6ab58 100644 --- a/src/engine/Context.hpp +++ b/src/engine/Context.hpp @@ -26,7 +26,6 @@ namespace Ingen { class Engine; - /** Graph execution context. * * This is used to pass whatever information a GraphObject might need to @@ -98,7 +97,6 @@ protected: bool _realtime; ///< True iff context is hard realtime }; - } // namespace Ingen #endif // INGEN_ENGINE_CONTEXT_HPP diff --git a/src/engine/ControlBindings.cpp b/src/engine/ControlBindings.cpp index c201ad30..35001bb6 100644 --- a/src/engine/ControlBindings.cpp +++ b/src/engine/ControlBindings.cpp @@ -37,7 +37,6 @@ using namespace Raul; namespace Ingen { - ControlBindings::ControlBindings(Engine& engine) : _engine(engine) , _learn_port(NULL) @@ -46,13 +45,11 @@ ControlBindings::ControlBindings(Engine& engine) { } - ControlBindings::~ControlBindings() { delete _feedback; } - ControlBindings::Key ControlBindings::port_binding(PortImpl* port) { @@ -80,7 +77,6 @@ ControlBindings::port_binding(PortImpl* port) return key; } - ControlBindings::Key ControlBindings::midi_event_key(uint16_t size, uint8_t* buf, uint16_t& value) { @@ -102,7 +98,6 @@ ControlBindings::midi_event_key(uint16_t size, uint8_t* buf, uint16_t& value) } } - void ControlBindings::port_binding_changed(ProcessContext& context, PortImpl* port) { @@ -111,7 +106,6 @@ ControlBindings::port_binding_changed(ProcessContext& context, PortImpl* port) _bindings->insert(make_pair(key, port)); } - void ControlBindings::port_value_changed(ProcessContext& context, PortImpl* port) { @@ -159,7 +153,6 @@ ControlBindings::port_value_changed(ProcessContext& context, PortImpl* port) } } - void ControlBindings::learn(PortImpl* port) { @@ -167,7 +160,6 @@ ControlBindings::learn(PortImpl* port) _learn_port = port; } - Raul::Atom ControlBindings::control_to_port_value(PortImpl* port, Type type, int16_t value) { @@ -201,7 +193,6 @@ ControlBindings::control_to_port_value(PortImpl* port, Type type, int16_t value) return Raul::Atom(scaled_value); } - int16_t ControlBindings::port_value_to_control(PortImpl* port, Type type) { @@ -242,7 +233,6 @@ ControlBindings::port_value_to_control(PortImpl* port, Type type) } } - void ControlBindings::set_port_value(ProcessContext& context, PortImpl* port, Type type, int16_t value) { @@ -260,7 +250,6 @@ ControlBindings::set_port_value(ProcessContext& context, PortImpl* port, Type ty context.event_sink().write(sizeof(ev), &ev); } - bool ControlBindings::bind(ProcessContext& context, Key key) { @@ -281,7 +270,6 @@ ControlBindings::bind(ProcessContext& context, Key key) return true; } - SharedPtr<ControlBindings::Bindings> ControlBindings::remove(const Raul::Path& path) { @@ -304,7 +292,6 @@ ControlBindings::remove(const Raul::Path& path) return old_bindings; } - SharedPtr<ControlBindings::Bindings> ControlBindings::remove(PortImpl* port) { @@ -327,7 +314,6 @@ ControlBindings::remove(PortImpl* port) return old_bindings; } - void ControlBindings::pre_process(ProcessContext& context, EventBuffer* buffer) { @@ -383,7 +369,6 @@ ControlBindings::pre_process(ProcessContext& context, EventBuffer* buffer) } } - void ControlBindings::post_process(ProcessContext& context, EventBuffer* buffer) { @@ -394,5 +379,4 @@ ControlBindings::post_process(ProcessContext& context, EventBuffer* buffer) } } - } // namespace Ingen diff --git a/src/engine/Driver.hpp b/src/engine/Driver.hpp index 6951d357..8ff5b13a 100644 --- a/src/engine/Driver.hpp +++ b/src/engine/Driver.hpp @@ -32,7 +32,6 @@ namespace Ingen { class DuplexPort; class ProcessContext; - /** Representation of a "system" (eg outside Ingen) port. * * This is the class through which the rest of the engine manages everything @@ -63,7 +62,6 @@ protected: DuplexPort* _patch_port; }; - /** Driver abstract base class. * * A Driver is, from the perspective of GraphObjects (nodes, patches, ports) an @@ -121,7 +119,6 @@ public: virtual ProcessContext& context() = 0; }; - } // namespace Ingen #endif // INGEN_ENGINE_DRIVER_HPP diff --git a/src/engine/DuplexPort.cpp b/src/engine/DuplexPort.cpp index 315583f0..3cae06d1 100644 --- a/src/engine/DuplexPort.cpp +++ b/src/engine/DuplexPort.cpp @@ -35,7 +35,6 @@ namespace Ingen { using namespace Shared; - DuplexPort::DuplexPort( BufferFactory& bufs, NodeImpl* parent, @@ -56,7 +55,6 @@ DuplexPort::DuplexPort( set_property(bufs.uris().ingen_polyphonic, polyphonic); } - bool DuplexPort::get_buffers(BufferFactory& bufs, Raul::Array<BufferFactory::Ref>* buffers, uint32_t poly) { @@ -66,7 +64,6 @@ DuplexPort::get_buffers(BufferFactory& bufs, Raul::Array<BufferFactory::Ref>* bu return OutputPort::get_buffers(bufs, buffers, poly); } - /** Prepare for the execution of parent patch */ void DuplexPort::pre_process(Context& context) @@ -84,7 +81,6 @@ DuplexPort::pre_process(Context& context) } } - /** Finalize after the execution of parent patch (deliver outputs) */ void DuplexPort::post_process(Context& context) @@ -99,6 +95,5 @@ DuplexPort::post_process(Context& context) } } - } // namespace Ingen diff --git a/src/engine/DuplexPort.hpp b/src/engine/DuplexPort.hpp index 3c7ad421..3127c7d7 100644 --- a/src/engine/DuplexPort.hpp +++ b/src/engine/DuplexPort.hpp @@ -27,7 +27,6 @@ namespace Ingen { class NodeImpl; - /** A duplex port (which is both an InputPort and an OutputPort) * * This is used for Patch ports, since they need to appear as both an input @@ -64,7 +63,6 @@ protected: bool _is_output; }; - } // namespace Ingen #endif // INGEN_ENGINE_DUPLEXPORT_HPP diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index 538b967f..76b63233 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -74,7 +74,6 @@ Engine::Engine(Ingen::Shared::World* a_world) } } - Engine::~Engine() { deactivate(); @@ -94,14 +93,12 @@ Engine::~Engine() munlockall(); } - SharedPtr<EngineStore> Engine::engine_store() const { return PtrCast<EngineStore>(_world->store()); } - void Engine::quit() { @@ -116,21 +113,18 @@ Engine::main_iteration() return !_quit_flag; } - void Engine::add_event_source(SharedPtr<EventSource> source) { _event_sources.insert(source); } - void Engine::set_driver(SharedPtr<Driver> driver) { _driver = driver; } - static void execute_and_delete_event(ProcessContext& context, QueuedEvent* ev) { @@ -140,7 +134,6 @@ execute_and_delete_event(ProcessContext& context, QueuedEvent* ev) delete ev; } - bool Engine::activate() { @@ -211,7 +204,6 @@ Engine::activate() return true; } - void Engine::deactivate() { @@ -224,7 +216,6 @@ Engine::deactivate() ThreadManager::single_threaded = true; } - void Engine::process_events(ProcessContext& context) { @@ -234,5 +225,4 @@ Engine::process_events(ProcessContext& context) (*i)->process(*_post_processor, context); } - } // namespace Ingen diff --git a/src/engine/EngineStore.cpp b/src/engine/EngineStore.cpp index ff8786a3..9905bd55 100644 --- a/src/engine/EngineStore.cpp +++ b/src/engine/EngineStore.cpp @@ -34,7 +34,6 @@ using namespace Raul; namespace Ingen { - /** Find the Patch at the given path. */ PatchImpl* @@ -44,7 +43,6 @@ EngineStore::find_patch(const Path& path) return dynamic_cast<PatchImpl*>(object); } - /** Find the Node at the given path. */ NodeImpl* @@ -54,7 +52,6 @@ EngineStore::find_node(const Path& path) return dynamic_cast<NodeImpl*>(object); } - /** Find the Port at the given path. */ PortImpl* @@ -64,7 +61,6 @@ EngineStore::find_port(const Path& path) return dynamic_cast<PortImpl*>(object); } - /** Find the Object at the given path. */ GraphObjectImpl* @@ -74,7 +70,6 @@ EngineStore::find_object(const Path& path) return ((i == end()) ? NULL : dynamic_cast<GraphObjectImpl*>(i->second.get())); } - /** Add an object to the store. Not realtime safe. */ void @@ -84,7 +79,6 @@ EngineStore::add(Shared::GraphObject* obj) Store::add(obj); } - /** Add a family of objects to the store. Not realtime safe. */ void @@ -94,7 +88,6 @@ EngineStore::add(const Objects& table) cram(table); } - /** Remove an object from the store. * * Returned is a vector containing all descendants of the object removed @@ -106,7 +99,6 @@ EngineStore::remove(const Path& path) return remove(find(path)); } - /** Remove an object from the store. * * Returned is a vector containing all descendants of the object removed @@ -129,7 +121,6 @@ EngineStore::remove(iterator object) } } - /** Remove all children of an object from the store. * * Returned is a vector containing all descendants of the object removed @@ -141,7 +132,6 @@ EngineStore::remove_children(const Path& path) return remove_children(find(path)); } - /** Remove all children of an object from the store. * * Returned is a vector containing all descendants of the object removed @@ -165,5 +155,4 @@ EngineStore::remove_children(iterator object) return SharedPtr<EngineStore::Objects>(); } - } // namespace Ingen diff --git a/src/engine/EngineStore.hpp b/src/engine/EngineStore.hpp index 0e30f9cb..cb853c2a 100644 --- a/src/engine/EngineStore.hpp +++ b/src/engine/EngineStore.hpp @@ -31,7 +31,6 @@ class NodeImpl; class PortImpl; class GraphObjectImpl; - /** Storage for all GraphObjects (tree of GraphObject's sorted by path). * * All looking up in pre_process() methods (and anything else that isn't in-band @@ -58,7 +57,6 @@ public: SharedPtr<Objects> remove_children(Objects::iterator i); }; - } // namespace Ingen #endif // OBJECTSTORE diff --git a/src/engine/Event.cpp b/src/engine/Event.cpp index 1f005a65..cec4e671 100644 --- a/src/engine/Event.cpp +++ b/src/engine/Event.cpp @@ -30,7 +30,6 @@ namespace Ingen { - void Event::execute(ProcessContext& context) { @@ -45,13 +44,11 @@ Event::execute(ProcessContext& context) _executed = true; } - void Event::post_process() { ThreadManager::assert_not_thread(THREAD_PROCESS); } - } // namespace Ingen diff --git a/src/engine/Event.hpp b/src/engine/Event.hpp index 66acd4ac..934720c9 100644 --- a/src/engine/Event.hpp +++ b/src/engine/Event.hpp @@ -30,7 +30,6 @@ class Engine; class Request; class ProcessContext; - /** Base class for all events (both realtime and QueuedEvent). * * This is for time-critical events like note ons. There is no non-realtime @@ -74,7 +73,6 @@ protected: bool _executed; }; - } // namespace Ingen #endif // INGEN_ENGINE_EVENT_HPP diff --git a/src/engine/EventBuffer.cpp b/src/engine/EventBuffer.cpp index 7dc6b179..b9086dc1 100644 --- a/src/engine/EventBuffer.cpp +++ b/src/engine/EventBuffer.cpp @@ -66,20 +66,17 @@ EventBuffer::EventBuffer(BufferFactory& bufs, size_t capacity) clear(); } - EventBuffer::~EventBuffer() { free(_data); } - void EventBuffer::prepare_read(Context& context) { rewind(); } - void EventBuffer::prepare_write(Context& context) { @@ -87,7 +84,6 @@ EventBuffer::prepare_write(Context& context) clear(); } - void EventBuffer::copy(Context& context, const Buffer* src_buf) { @@ -111,7 +107,6 @@ EventBuffer::copy(Context& context, const Buffer* src_buf) assert(event_count() == src->event_count()); } - /** Increment the read position by one event. * * \return true if increment was successful, or false if end of buffer reached. @@ -127,7 +122,6 @@ EventBuffer::increment() const } } - /** \return true iff the cursor is valid (ie get_event is safe) */ bool @@ -136,7 +130,6 @@ EventBuffer::is_valid() const return lv2_event_is_valid(&_iter); } - /** Read an event from the current position in the buffer * * \return true if read was successful, or false if end of buffer reached @@ -160,7 +153,6 @@ EventBuffer::get_event(uint32_t* frames, } } - /** Get the object currently pointed to, or NULL if invalid. */ LV2_Atom* @@ -174,7 +166,6 @@ EventBuffer::get_atom() const return NULL; } - /** Get the event currently pointed to, or NULL if invalid. */ LV2_Event* @@ -187,7 +178,6 @@ EventBuffer::get_event() const return NULL; } - /** Append an event to the buffer. * * \a timestamp must be >= the latest event in the buffer. @@ -222,5 +212,4 @@ EventBuffer::append(uint32_t frames, } } - } // namespace Ingen diff --git a/src/engine/EventBuffer.hpp b/src/engine/EventBuffer.hpp index 9757ace7..18a2afb6 100644 --- a/src/engine/EventBuffer.hpp +++ b/src/engine/EventBuffer.hpp @@ -26,7 +26,6 @@ namespace Ingen { - class EventBuffer : public Buffer { public: EventBuffer(BufferFactory& bufs, size_t capacity); @@ -80,7 +79,6 @@ private: uint32_t _latest_subframes; ///< Latest time of all events (subframes) }; - } // namespace Ingen #endif // INGEN_ENGINE_EVENTBUFFER_HPP diff --git a/src/engine/EventSink.cpp b/src/engine/EventSink.cpp index 790f9795..10057a48 100644 --- a/src/engine/EventSink.cpp +++ b/src/engine/EventSink.cpp @@ -22,7 +22,6 @@ using namespace std; namespace Ingen { - /** \a size is not size_t because an event will never be even remotely close * to UINT32_MAX in size, so uint32_t saves wasted space on 64-bit. */ @@ -38,7 +37,6 @@ EventSink::write(uint32_t size, const Event* ev) return true; } - /** Read the next event into event_buffer. * * \a event_buffer can be casted to Event* and virtual methods called. @@ -59,5 +57,4 @@ EventSink::read(uint32_t event_buffer_size, uint8_t* event_buffer) return false; } - } // namespace Ingen diff --git a/src/engine/EventSink.hpp b/src/engine/EventSink.hpp index 1040df6b..a097c6e6 100644 --- a/src/engine/EventSink.hpp +++ b/src/engine/EventSink.hpp @@ -29,7 +29,6 @@ class PortImpl; class Engine; class Event; - /** Sink for events generated in the audio thread. * * Implemented as a flat ringbuffer of events, which are constructed directly @@ -52,8 +51,6 @@ private: Raul::RingBuffer _events; }; - - } // namespace Ingen #endif // INGEN_ENGINE_EVENTSINK_HPP diff --git a/src/engine/EventSource.cpp b/src/engine/EventSource.cpp index ebc12052..a3664d92 100644 --- a/src/engine/EventSource.cpp +++ b/src/engine/EventSource.cpp @@ -26,7 +26,6 @@ using namespace std; namespace Ingen { - EventSource::EventSource(size_t queue_size) : _blocking_semaphore(0) { @@ -34,13 +33,11 @@ EventSource::EventSource(size_t queue_size) set_name("EventSource"); } - EventSource::~EventSource() { Thread::stop(); } - /** Push an unprepared event onto the queue. */ void @@ -55,7 +52,6 @@ EventSource::push_queued(QueuedEvent* const ev) whip(); } - /** Process all events for a cycle. * * Executed events will be pushed to @a dest. @@ -81,7 +77,7 @@ EventSource::process(PostProcessor& dest, ProcessContext& context, bool limit) if (!head) return; - + QueuedEvent* ev = (QueuedEvent*)head->elem(); while (ev && ev->is_prepared() && ev->time() < context.end()) { @@ -101,7 +97,6 @@ EventSource::process(PostProcessor& dest, ProcessContext& context, bool limit) } } - /** Pre-process a single event */ void EventSource::_whipped() @@ -126,6 +121,5 @@ EventSource::_whipped() _blocking_semaphore.wait(); } - } // namespace Ingen diff --git a/src/engine/EventSource.hpp b/src/engine/EventSource.hpp index 05f7ef0c..38bf58c1 100644 --- a/src/engine/EventSource.hpp +++ b/src/engine/EventSource.hpp @@ -29,7 +29,6 @@ class QueuedEvent; class PostProcessor; class ProcessContext; - /** Source for events to run in the audio thread. * * The Driver gets events from an EventSource in the process callback @@ -69,7 +68,6 @@ private: Raul::Semaphore _blocking_semaphore; }; - } // namespace Ingen #endif // INGEN_ENGINE_EVENTSOURCE_HPP diff --git a/src/engine/GraphObjectImpl.cpp b/src/engine/GraphObjectImpl.cpp index c257b319..6ee89478 100644 --- a/src/engine/GraphObjectImpl.cpp +++ b/src/engine/GraphObjectImpl.cpp @@ -28,7 +28,6 @@ namespace Ingen { using namespace Shared; - GraphObjectImpl::GraphObjectImpl(Shared::LV2URIMap& uris, GraphObjectImpl* parent, const Symbol& symbol) : ResourceImpl(uris, parent ? parent->path().child(symbol) : Raul::Path::root()) @@ -38,21 +37,18 @@ GraphObjectImpl::GraphObjectImpl(Shared::LV2URIMap& uris, { } - void GraphObjectImpl::add_meta_property(const Raul::URI& key, const Atom& value) { add_property(key, Resource::Property(value, Resource::INTERNAL)); } - void GraphObjectImpl::set_meta_property(const Raul::URI& key, const Atom& value) { set_property(key, Resource::Property(value, Resource::INTERNAL)); } - const Atom& GraphObjectImpl::get_property(const Raul::URI& key) const { @@ -61,19 +57,16 @@ GraphObjectImpl::get_property(const Raul::URI& key) const return (i != properties().end()) ? i->second : null_atom; } - PatchImpl* GraphObjectImpl::parent_patch() const { return dynamic_cast<PatchImpl*>((NodeImpl*)_parent); } - SharedPtr<GraphObject> GraphObjectImpl::find_child(const string& name) const { throw; } - } // namespace Ingen diff --git a/src/engine/GraphObjectImpl.hpp b/src/engine/GraphObjectImpl.hpp index 251559f3..a7ff7482 100644 --- a/src/engine/GraphObjectImpl.hpp +++ b/src/engine/GraphObjectImpl.hpp @@ -39,7 +39,6 @@ class Context; class ProcessContext; class BufferFactory; - /** An object on the audio graph - Patch, Node, Port, etc. * * Each of these is a Raul::Deletable and so can be deleted in a realtime safe @@ -105,7 +104,6 @@ protected: Raul::Symbol _symbol; }; - } // namespace Ingen #endif // INGEN_ENGINE_GRAPHOBJECTIMPL_HPP diff --git a/src/engine/HTTPClientSender.cpp b/src/engine/HTTPClientSender.cpp index 7f92144f..412539b9 100644 --- a/src/engine/HTTPClientSender.cpp +++ b/src/engine/HTTPClientSender.cpp @@ -37,21 +37,18 @@ HTTPClientSender::response_ok(int32_t id) { } - void HTTPClientSender::response_error(int32_t id, const std::string& msg) { warn << "HTTP Error " << id << " (" << msg << ")" << endl; } - void HTTPClientSender::error(const std::string& msg) { warn << "HTTP send error " << msg << endl; } - void HTTPClientSender::put(const URI& uri, const Resource::Properties& properties, @@ -71,7 +68,6 @@ HTTPClientSender::put(const URI& uri, send_chunk(str); } - void HTTPClientSender::delta(const URI& uri, const Resource::Properties& remove, @@ -79,7 +75,6 @@ HTTPClientSender::delta(const URI& uri, { } - void HTTPClientSender::del(const Path& path) { @@ -87,7 +82,6 @@ HTTPClientSender::del(const Path& path) send_chunk(string("<").append(path.str()).append("> a <http://www.w3.org/2002/07/owl#Nothing> .")); } - void HTTPClientSender::connect(const Path& src_path, const Path& dst_path) { @@ -100,14 +94,12 @@ HTTPClientSender::connect(const Path& src_path, const Path& dst_path) send_chunk(msg); } - void HTTPClientSender::disconnect(const Path& src_path, const Path& dst_path) { //send("/ingen/disconnection", "ss", src_path.c_str(), dst_path.c_str(), LO_ARGS_END); } - void HTTPClientSender::set_property(const URI& subject, const URI& key, const Atom& value) { @@ -124,7 +116,6 @@ HTTPClientSender::set_property(const URI& subject, const URI& key, const Atom& v #endif } - void HTTPClientSender::activity(const Path& path) { @@ -134,7 +125,6 @@ HTTPClientSender::activity(const Path& path) send_chunk(msg); } - void HTTPClientSender::move(const Path& old_path, const Path& new_path) { @@ -145,5 +135,4 @@ HTTPClientSender::move(const Path& old_path, const Path& new_path) send_chunk(msg); } - } // namespace Ingen diff --git a/src/engine/HTTPClientSender.hpp b/src/engine/HTTPClientSender.hpp index 4d74358f..1bef2405 100644 --- a/src/engine/HTTPClientSender.hpp +++ b/src/engine/HTTPClientSender.hpp @@ -31,7 +31,6 @@ class Engine; namespace Shared { class EngineInterface; } - /** Implements ClientInterface for HTTP clients. * Sends changes as RDF deltas over an HTTP stream * (a single message with chunked encoding response). @@ -98,7 +97,6 @@ private: bool _enabled; }; - } // namespace Ingen #endif // INGEN_ENGINE_HTTPCLIENTSENDER_HPP diff --git a/src/engine/HTTPEngineReceiver.cpp b/src/engine/HTTPEngineReceiver.cpp index d24c661b..a56e4161 100644 --- a/src/engine/HTTPEngineReceiver.cpp +++ b/src/engine/HTTPEngineReceiver.cpp @@ -49,7 +49,6 @@ namespace Ingen { using namespace Shared; using namespace Serialisation; - HTTPEngineReceiver::HTTPEngineReceiver(Engine& engine, uint16_t port) : QueuedEngineInterface(engine, 64) // FIXME , _server(soup_server_new(SOUP_SERVER_PORT, port, NULL)) @@ -66,7 +65,6 @@ HTTPEngineReceiver::HTTPEngineReceiver(Engine& engine, uint16_t port) Thread::set_name("HTTPEngineReceiver"); } - HTTPEngineReceiver::~HTTPEngineReceiver() { deactivate(); @@ -80,7 +78,6 @@ HTTPEngineReceiver::~HTTPEngineReceiver() } } - void HTTPEngineReceiver::activate_source() { @@ -89,7 +86,6 @@ HTTPEngineReceiver::activate_source() _receive_thread->start(); } - void HTTPEngineReceiver::deactivate_source() { @@ -97,7 +93,6 @@ HTTPEngineReceiver::deactivate_source() EventSource::deactivate_source(); } - void HTTPEngineReceiver::message_callback(SoupServer* server, SoupMessage* msg, @@ -229,7 +224,6 @@ HTTPEngineReceiver::message_callback(SoupServer* server, #endif } - /** Override the semaphore driven _run method of QueuedEngineInterface * to wait on HTTP requests and process them immediately in this thread. */ diff --git a/src/engine/InputPort.cpp b/src/engine/InputPort.cpp index f65b9a5a..02947aa7 100644 --- a/src/engine/InputPort.cpp +++ b/src/engine/InputPort.cpp @@ -61,7 +61,6 @@ InputPort::InputPort(BufferFactory& bufs, } } - bool InputPort::apply_poly(Maid& maid, uint32_t poly) { @@ -74,7 +73,6 @@ InputPort::apply_poly(Maid& maid, uint32_t poly) return true; } - /** Set \a buffers appropriately if this port has \a num_connections connections. * \return true iff buffers are locally owned by the port */ @@ -109,7 +107,6 @@ InputPort::get_buffers(BufferFactory& bufs, Raul::Array<BufferFactory::Ref>* buf return true; } - /** Add a connection. Realtime safe. * * The buffer of this port will be set directly to the connection's buffer @@ -130,7 +127,6 @@ InputPort::add_connection(Connections::Node* const c) _broadcast = true; } - /** Remove a connection. Realtime safe. * * Note that setup_buffers must be called after this before the change @@ -166,7 +162,6 @@ InputPort::remove_connection(ProcessContext& context, const OutputPort* src_port return connection; } - /** Prepare buffer for access, mixing if necessary. Realtime safe. */ void @@ -206,7 +201,6 @@ InputPort::pre_process(Context& context) broadcast_value(context, false); } - void InputPort::post_process(Context& context) { @@ -221,7 +215,6 @@ InputPort::post_process(Context& context) } } - bool InputPort::direct_connect() const { @@ -231,6 +224,5 @@ InputPort::direct_connect() const && !_connections.front()->must_queue(); } - } // namespace Ingen diff --git a/src/engine/InputPort.hpp b/src/engine/InputPort.hpp index 92d8d2d2..6f691a9c 100644 --- a/src/engine/InputPort.hpp +++ b/src/engine/InputPort.hpp @@ -33,7 +33,6 @@ class NodeImpl; class OutputPort; class ProcessContext; - /** An input port on a Node or Patch. * * All ports have a Buffer, but the actual contents (data) of that buffer may be @@ -85,7 +84,6 @@ protected: Connections _connections; }; - } // namespace Ingen #endif // INGEN_ENGINE_INPUTPORT_HPP diff --git a/src/engine/InternalPlugin.cpp b/src/engine/InternalPlugin.cpp index 30202e4c..359dc8c7 100644 --- a/src/engine/InternalPlugin.cpp +++ b/src/engine/InternalPlugin.cpp @@ -41,7 +41,6 @@ InternalPlugin::InternalPlugin(Shared::LV2URIMap& uris, set_property(uris.rdf_type, uris.ingen_Internal); } - NodeImpl* InternalPlugin::instantiate(BufferFactory& bufs, const string& name, @@ -68,5 +67,4 @@ InternalPlugin::instantiate(BufferFactory& bufs, } } - } // namespace Ingen diff --git a/src/engine/InternalPlugin.hpp b/src/engine/InternalPlugin.hpp index dcadd4aa..b3d365e4 100644 --- a/src/engine/InternalPlugin.hpp +++ b/src/engine/InternalPlugin.hpp @@ -35,7 +35,6 @@ namespace Ingen { class NodeImpl; class BufferFactory; - /** Implementation of an Internal plugin. */ class InternalPlugin : public PluginImpl @@ -56,7 +55,6 @@ private: const std::string _symbol; }; - } // namespace Ingen #endif // INGEN_ENGINE_INTERNALPLUGIN_HPP diff --git a/src/engine/JackDriver.cpp b/src/engine/JackDriver.cpp index e3c89ca6..d60a0ec2 100644 --- a/src/engine/JackDriver.cpp +++ b/src/engine/JackDriver.cpp @@ -62,7 +62,6 @@ typedef jack_default_audio_sample_t jack_sample_t; namespace Ingen { - //// JackPort //// JackPort::JackPort(JackDriver* driver, DuplexPort* patch_port) @@ -75,13 +74,11 @@ JackPort::JackPort(JackDriver* driver, DuplexPort* patch_port) create(); } - JackPort::~JackPort() { assert(_jack_port == NULL); } - void JackPort::create() { @@ -100,7 +97,6 @@ JackPort::create() } } - void JackPort::destroy() { @@ -110,14 +106,12 @@ JackPort::destroy() _jack_port = NULL; } - void JackPort::move(const Raul::Path& path) { jack_port_set_name(_jack_port, ingen_jack_port_name(path).c_str()); } - void JackPort::pre_process(ProcessContext& context) { @@ -153,7 +147,6 @@ JackPort::pre_process(ProcessContext& context) } } - void JackPort::post_process(ProcessContext& context) { @@ -189,7 +182,6 @@ JackPort::post_process(ProcessContext& context) } } - //// JackDriver //// JackDriver::JackDriver(Engine& engine) @@ -208,7 +200,6 @@ JackDriver::JackDriver(Engine& engine) LV2_EVENT_URI, "http://lv2plug.in/ns/ext/midi#MidiEvent"); } - JackDriver::~JackDriver() { deactivate(); @@ -217,7 +208,6 @@ JackDriver::~JackDriver() jack_client_close(_client); } - bool JackDriver::supports(Shared::PortType port_type, Shared::EventType event_type) { @@ -225,7 +215,6 @@ JackDriver::supports(Shared::PortType port_type, Shared::EventType event_type) || (port_type == PortType::EVENTS && event_type == EventType::MIDI)); } - bool JackDriver::attach(const std::string& server_name, const std::string& client_name, @@ -252,7 +241,7 @@ JackDriver::attach(const std::string& server_name, LOG(info) << "Connected to JACK server `" << server_name << "'" << endl; } } - + // Either server name not specified, or supplied server name does not exist // Connect to default server if (!_client) { @@ -287,7 +276,6 @@ JackDriver::attach(const std::string& server_name, return true; } - void JackDriver::activate() { @@ -317,7 +305,6 @@ JackDriver::activate() } } - void JackDriver::deactivate() { @@ -340,7 +327,6 @@ JackDriver::deactivate() } } - /** Add a Jack port. * * Realtime safe, this is to be called at the beginning of a process cycle to @@ -356,7 +342,6 @@ JackDriver::add_port(DriverPort* port) _ports.push_back((JackPort*)port); } - /** Remove a Jack port. * * Realtime safe. This is to be called at the beginning of a process cycle to @@ -383,7 +368,6 @@ JackDriver::remove_port(const Path& path, DriverPort** port) return NULL; } - DriverPort* JackDriver::port(const Path& path) { @@ -394,7 +378,6 @@ JackDriver::port(const Path& path) return NULL; } - DriverPort* JackDriver::create_port(DuplexPort* patch_port) { @@ -409,7 +392,6 @@ JackDriver::create_port(DuplexPort* patch_port) } } - DriverPort* JackDriver::driver_port(const Path& path) { @@ -422,10 +404,8 @@ JackDriver::driver_port(const Path& path) return NULL; } - /**** Jack Callbacks ****/ - /** Jack process callback, drives entire audio thread. * * \callgraph @@ -500,7 +480,6 @@ JackDriver::_process_cb(jack_nframes_t nframes) return 0; } - void JackDriver::_thread_init_cb() { @@ -511,7 +490,6 @@ JackDriver::_thread_init_cb() ThreadManager::assert_thread(THREAD_PROCESS); } - void JackDriver::_shutdown_cb() { @@ -522,7 +500,6 @@ JackDriver::_shutdown_cb() _client = NULL; } - int JackDriver::_sample_rate_cb(jack_nframes_t nframes) { @@ -535,7 +512,6 @@ JackDriver::_sample_rate_cb(jack_nframes_t nframes) return 0; } - int JackDriver::_block_length_cb(jack_nframes_t nframes) { @@ -547,7 +523,6 @@ JackDriver::_block_length_cb(jack_nframes_t nframes) return 0; } - #ifdef INGEN_JACK_SESSION void JackDriver::_session_cb(jack_session_event_t* event) diff --git a/src/engine/JackDriver.hpp b/src/engine/JackDriver.hpp index 278a5477..5b26e4f1 100644 --- a/src/engine/JackDriver.hpp +++ b/src/engine/JackDriver.hpp @@ -47,7 +47,6 @@ class PortImpl; class DuplexPort; class JackDriver; - /** Used internally by JackDriver to represent a Jack port. * * A Jack port always has a one-to-one association with a Patch port. @@ -73,8 +72,6 @@ private: jack_port_t* _jack_port; }; - - /** The Jack Driver. * * The process callback here drives the entire audio thread by "pulling" @@ -180,7 +177,6 @@ private: PatchImpl* _root_patch; }; - } // namespace Ingen #endif // INGEN_ENGINE_JACKAUDIODRIVER_HPP diff --git a/src/engine/LV2Info.hpp b/src/engine/LV2Info.hpp index ff502265..0a61d479 100644 --- a/src/engine/LV2Info.hpp +++ b/src/engine/LV2Info.hpp @@ -54,7 +54,6 @@ private: Ingen::Shared::World* _world; }; - } // namespace Ingen #endif // INGEN_ENGINE_LV2INFO_HPP diff --git a/src/engine/LV2Node.cpp b/src/engine/LV2Node.cpp index b6109d7f..67f19bf4 100644 --- a/src/engine/LV2Node.cpp +++ b/src/engine/LV2Node.cpp @@ -43,7 +43,6 @@ namespace Ingen { using namespace Shared; - /** Partially construct a LV2Node. * * Object is not usable until instantiate() is called with success. @@ -63,13 +62,11 @@ LV2Node::LV2Node(LV2Plugin* plugin, assert(_lv2_plugin); } - LV2Node::~LV2Node() { delete _instances; } - bool LV2Node::prepare_poly(BufferFactory& bufs, uint32_t poly) { @@ -114,7 +111,6 @@ LV2Node::prepare_poly(BufferFactory& bufs, uint32_t poly) return true; } - bool LV2Node::apply_poly(Raul::Maid& maid, uint32_t poly) { @@ -131,7 +127,6 @@ LV2Node::apply_poly(Raul::Maid& maid, uint32_t poly) return NodeImpl::apply_poly(maid, poly); } - /** Instantiate self from LV2 plugin descriptor. * * Implemented as a seperate function (rather than in the constructor) to @@ -357,7 +352,6 @@ LV2Node::instantiate(BufferFactory& bufs) return ret; } - void LV2Node::activate(BufferFactory& bufs) { @@ -367,7 +361,6 @@ LV2Node::activate(BufferFactory& bufs) slv2_instance_activate(instance(i)); } - void LV2Node::deactivate() { @@ -377,7 +370,6 @@ LV2Node::deactivate() slv2_instance_deactivate(instance(i)); } - void LV2Node::message_run(MessageContext& context) { @@ -394,7 +386,6 @@ LV2Node::message_run(MessageContext& context) (*_message_funcs->run)(instance(0)->lv2_handle, _valid_ports, _valid_ports); } - void LV2Node::process(ProcessContext& context) { @@ -406,7 +397,6 @@ LV2Node::process(ProcessContext& context) NodeImpl::post_process(context); } - void LV2Node::set_port_buffer(uint32_t voice, uint32_t port_num, IntrusivePtr<Buffer> buf, SampleCount offset) @@ -416,6 +406,5 @@ LV2Node::set_port_buffer(uint32_t voice, uint32_t port_num, buf ? buf->port_data(_ports->at(port_num)->buffer_type(), offset) : NULL); } - } // namespace Ingen diff --git a/src/engine/LV2Node.hpp b/src/engine/LV2Node.hpp index 74f3a922..4065e01c 100644 --- a/src/engine/LV2Node.hpp +++ b/src/engine/LV2Node.hpp @@ -30,7 +30,6 @@ namespace Ingen { class LV2Plugin; - /** An instance of a LV2 plugin. * * \ingroup engine @@ -75,7 +74,6 @@ protected: SharedPtr<Shared::LV2Features::FeatureArray> _features; }; - } // namespace Ingen #endif // INGEN_ENGINE_LV2NODE_HPP diff --git a/src/engine/LV2Plugin.cpp b/src/engine/LV2Plugin.cpp index faa10e97..b076ef16 100644 --- a/src/engine/LV2Plugin.cpp +++ b/src/engine/LV2Plugin.cpp @@ -33,7 +33,6 @@ using namespace Raul; namespace Ingen { - LV2Plugin::LV2Plugin(SharedPtr<LV2Info> lv2_info, const std::string& uri) : PluginImpl(*lv2_info->world().uris().get(), Plugin::LV2, uri) , _slv2_plugin(NULL) @@ -42,7 +41,6 @@ LV2Plugin::LV2Plugin(SharedPtr<LV2Info> lv2_info, const std::string& uri) set_property(_uris.rdf_type, _uris.lv2_Plugin); } - const string LV2Plugin::symbol() const { @@ -63,7 +61,6 @@ LV2Plugin::symbol() const return "lv2_symbol"; } - NodeImpl* LV2Plugin::instantiate(BufferFactory& bufs, const string& name, @@ -85,14 +82,12 @@ LV2Plugin::instantiate(BufferFactory& bufs, return n; } - void LV2Plugin::slv2_plugin(SLV2Plugin p) { _slv2_plugin = p; } - const std::string& LV2Plugin::library_path() const { @@ -110,5 +105,4 @@ LV2Plugin::library_path() const return _library_path; } - } // namespace Ingen diff --git a/src/engine/LV2Plugin.hpp b/src/engine/LV2Plugin.hpp index 31a8770b..808a9103 100644 --- a/src/engine/LV2Plugin.hpp +++ b/src/engine/LV2Plugin.hpp @@ -41,7 +41,6 @@ namespace Ingen { class PatchImpl; class NodeImpl; - /** Implementation of an LV2 plugin (loaded shared library). */ class LV2Plugin : public PluginImpl @@ -69,7 +68,6 @@ private: SharedPtr<LV2Info> _lv2_info; }; - } // namespace Ingen #endif // INGEN_ENGINE_LV2PLUGIN_HPP diff --git a/src/engine/MessageContext.cpp b/src/engine/MessageContext.cpp index c1fbe5c5..5c8a6aff 100644 --- a/src/engine/MessageContext.cpp +++ b/src/engine/MessageContext.cpp @@ -32,7 +32,6 @@ using namespace Raul; namespace Ingen { - void MessageContext::run(NodeImpl* node, FrameTime time) { @@ -49,7 +48,6 @@ MessageContext::run(NodeImpl* node, FrameTime time) } } - void MessageContext::_run() { @@ -97,7 +95,6 @@ MessageContext::_run() } } - void MessageContext::execute(const Request& req) { diff --git a/src/engine/MessageContext.hpp b/src/engine/MessageContext.hpp index 1eb92ff5..fbf38b77 100644 --- a/src/engine/MessageContext.hpp +++ b/src/engine/MessageContext.hpp @@ -107,7 +107,6 @@ protected: FrameTime _end_time; }; - } // namespace Ingen #endif // INGEN_ENGINE_MESSAGECONTEXT_HPP diff --git a/src/engine/NodeFactory.cpp b/src/engine/NodeFactory.cpp index 8ed1dc81..8d4ce082 100644 --- a/src/engine/NodeFactory.cpp +++ b/src/engine/NodeFactory.cpp @@ -48,7 +48,6 @@ namespace Ingen { using namespace Internals; - NodeFactory::NodeFactory(Ingen::Shared::World* world) : _world(world) , _has_loaded(false) @@ -58,7 +57,6 @@ NodeFactory::NodeFactory(Ingen::Shared::World* world) { } - NodeFactory::~NodeFactory() { for (Plugins::iterator i = _plugins.begin(); i != _plugins.end(); ++i) @@ -67,7 +65,6 @@ NodeFactory::~NodeFactory() _plugins.clear(); } - PluginImpl* NodeFactory::plugin(const Raul::URI& uri) { @@ -75,7 +72,6 @@ NodeFactory::plugin(const Raul::URI& uri) return ((i != _plugins.end()) ? i->second : NULL); } - void NodeFactory::load_plugins() { @@ -97,7 +93,6 @@ NodeFactory::load_plugins() } } - void NodeFactory::load_internal_plugins() { @@ -115,7 +110,6 @@ NodeFactory::load_internal_plugins() _plugins.insert(make_pair(trigger_plug->uri(), trigger_plug)); } - #ifdef HAVE_SLV2 /** Loads information about all LV2 plugins into internal plugin database. */ diff --git a/src/engine/NodeFactory.hpp b/src/engine/NodeFactory.hpp index 7a464e3b..87224529 100644 --- a/src/engine/NodeFactory.hpp +++ b/src/engine/NodeFactory.hpp @@ -37,7 +37,6 @@ class PluginImpl; class LV2Info; #endif - /** Discovers and loads plugin libraries. * * \ingroup engine @@ -70,7 +69,6 @@ private: #endif }; - } // namespace Ingen #endif // INGEN_ENGINE_NODEFACTORY_HPP diff --git a/src/engine/NodeImpl.cpp b/src/engine/NodeImpl.cpp index 7c1e185a..4d8afe2d 100644 --- a/src/engine/NodeImpl.cpp +++ b/src/engine/NodeImpl.cpp @@ -34,7 +34,6 @@ using namespace std; namespace Ingen { - NodeImpl::NodeImpl(PluginImpl* plugin, const Raul::Symbol& symbol, bool polyphonic, PatchImpl* parent, SampleRate srate) : GraphObjectImpl(plugin->uris(), parent, symbol) , _plugin(plugin) @@ -56,7 +55,6 @@ NodeImpl::NodeImpl(PluginImpl* plugin, const Raul::Symbol& symbol, bool polyphon assert(_parent == NULL || (_polyphony == parent->internal_poly() || _polyphony == 1)); } - NodeImpl::~NodeImpl() { if (_activated) @@ -69,21 +67,18 @@ NodeImpl::~NodeImpl() free(_valid_ports); } - Shared::Port* NodeImpl::port(uint32_t index) const { return (*_ports)[index]; } - const Shared::Plugin* NodeImpl::plugin() const { return _plugin; } - void NodeImpl::activate(BufferFactory& bufs) { @@ -106,7 +101,6 @@ NodeImpl::activate(BufferFactory& bufs) } } - void NodeImpl::deactivate() { @@ -121,7 +115,6 @@ NodeImpl::deactivate() } } - bool NodeImpl::prepare_poly(BufferFactory& bufs, uint32_t poly) { @@ -137,7 +130,6 @@ NodeImpl::prepare_poly(BufferFactory& bufs, uint32_t poly) return true; } - bool NodeImpl::apply_poly(Raul::Maid& maid, uint32_t poly) { @@ -155,7 +147,6 @@ NodeImpl::apply_poly(Raul::Maid& maid, uint32_t poly) return true; } - void NodeImpl::set_buffer_size(Context& context, BufferFactory& bufs, PortType type, size_t size) { @@ -165,7 +156,6 @@ NodeImpl::set_buffer_size(Context& context, BufferFactory& bufs, PortType type, _ports->at(i)->set_buffer_size(context, bufs, size); } - void NodeImpl::reset_input_ready() { @@ -174,21 +164,18 @@ NodeImpl::reset_input_ready() _input_ready.reset(0); } - bool NodeImpl::process_lock() { return _process_lock.compare_and_exchange(0, 1); } - void NodeImpl::process_unlock() { _process_lock = 0; } - void NodeImpl::wait_for_input(size_t num_providers) { @@ -199,7 +186,6 @@ NodeImpl::wait_for_input(size_t num_providers) _input_ready.wait(); } - void NodeImpl::signal_input_ready() { @@ -208,7 +194,6 @@ NodeImpl::signal_input_ready() _input_ready.post(); } - /** Prepare to run a cycle (in the audio thread) */ void @@ -226,7 +211,6 @@ NodeImpl::pre_process(Context& context) } } - /** Prepare to run a cycle (in the audio thread) */ void @@ -242,7 +226,6 @@ NodeImpl::post_process(Context& context) } } - /** Flag a port as set (for message context) */ void @@ -254,14 +237,12 @@ NodeImpl::set_port_valid(uint32_t port_index) lv2_contexts_set_port_valid(_valid_ports, port_index); } - void* NodeImpl::valid_ports() { return _valid_ports; } - void NodeImpl::reset_valid_ports() { @@ -269,7 +250,6 @@ NodeImpl::reset_valid_ports() memset(_valid_ports, '\0', num_ports() / 8); } - void NodeImpl::set_port_buffer(uint32_t voice, uint32_t port_num, BufferFactory::Ref buf, SampleCount offset) @@ -278,6 +258,5 @@ NodeImpl::set_port_buffer(uint32_t voice, uint32_t port_num, << " buffer " << buf << " offset " << offset << std::endl;*/ } - } // namespace Ingen diff --git a/src/engine/NodeImpl.hpp b/src/engine/NodeImpl.hpp index 4d98bb2a..bf9c2ff5 100644 --- a/src/engine/NodeImpl.hpp +++ b/src/engine/NodeImpl.hpp @@ -42,7 +42,6 @@ class PluginImpl; class PortImpl; class ProcessContext; - /** A Node (or "module") in a Patch (which is also a Node). * * A Node is a unit with input/output ports, a process() method, and some other @@ -215,7 +214,6 @@ protected: bool _traversed; ///< Flag for process order algorithm }; - } // namespace Ingen #endif // INGEN_ENGINE_NODEIMPL_HPP diff --git a/src/engine/OSCClientSender.cpp b/src/engine/OSCClientSender.cpp index 786f9ee9..9efbc5e4 100644 --- a/src/engine/OSCClientSender.cpp +++ b/src/engine/OSCClientSender.cpp @@ -37,14 +37,12 @@ using namespace Raul; namespace Ingen { - /*! \page client_osc_namespace Client OSC Namespace Documentation * * <p>These are the commands the client recognizes. All monitoring of * changes in the engine happens via these commands.</p> */ - /** \page client_osc_namespace * <h2>/ok</h2> * \arg \b response-id (int) - Request ID this is a response to @@ -63,7 +61,6 @@ OSCClientSender::response_ok(int32_t id) } } - /** \page client_osc_namespace * <h2>/error</h2> * \arg \b response-id (int) - Request ID this is a response to @@ -83,7 +80,6 @@ OSCClientSender::response_error(int32_t id, const std::string& msg) } } - /** \page client_osc_namespace * <h2>/error</h2> * \arg \b message (string) - Error message (natural language text) @@ -98,7 +94,6 @@ OSCClientSender::error(const std::string& msg) send("/error", "s", msg.c_str(), LO_ARGS_END); } - /** \page client_osc_namespace * <h2>/put</h2> * \arg \b path (string) - Path of object @@ -123,7 +118,6 @@ OSCClientSender::put(const Raul::URI& path, send_message("/put", m); } - void OSCClientSender::delta(const Raul::URI& path, const Shared::Resource::Properties& remove, @@ -132,7 +126,6 @@ OSCClientSender::delta(const Raul::URI& path, warn << "FIXME: OSC DELTA" << endl; } - /** \page client_osc_namespace * <h2>/move</h2> * \arg \b old-path (string) - Old path of object @@ -147,8 +140,6 @@ OSCClientSender::move(const Path& old_path, const Path& new_path) send("/move", "ss", old_path.c_str(), new_path.c_str(), LO_ARGS_END); } - - /** \page client_osc_namespace * <h2>/delete</h2> * \arg \b path (string) - Path of object (which no longer exists) @@ -161,7 +152,6 @@ OSCClientSender::del(const Path& path) send("/delete", "s", path.c_str(), LO_ARGS_END); } - /** \page client_osc_namespace * <h2>/connect</h2> * \arg \b src-path (string) - Path of the source port @@ -175,7 +165,6 @@ OSCClientSender::connect(const Path& src_port_path, const Path& dst_port_path) send("/connect", "ss", src_port_path.c_str(), dst_port_path.c_str(), LO_ARGS_END); } - /** \page client_osc_namespace * <h2>/disconnect</h2> * \arg \b src-path (string) - Path of the source port @@ -189,7 +178,6 @@ OSCClientSender::disconnect(const Path& src_port_path, const Path& dst_port_path send("/disconnect", "ss", src_port_path.c_str(), dst_port_path.c_str(), LO_ARGS_END); } - /** \page client_osc_namespace * <h2>/set_property</h2> * \arg \b path (string) - Path of the object associated with property (node, patch, or port) @@ -208,7 +196,6 @@ OSCClientSender::set_property(const URI& path, const URI& key, const Atom& value send_message("/set_property", m); } - /** \page client_osc_namespace * <h2>/activity</h2> * \arg \b path (string) - Path of object @@ -224,5 +211,4 @@ OSCClientSender::activity(const Path& path) lo_send(_address, "/activity", "s", path.c_str(), LO_ARGS_END); } - } // namespace Ingen diff --git a/src/engine/OSCClientSender.hpp b/src/engine/OSCClientSender.hpp index 5b775846..492a509a 100644 --- a/src/engine/OSCClientSender.hpp +++ b/src/engine/OSCClientSender.hpp @@ -30,7 +30,6 @@ namespace Ingen { namespace Shared { class EngineInterface; } - /** Implements ClientInterface for OSC clients (sends OSC messages). * * \ingroup engine @@ -95,7 +94,6 @@ private: Raul::URI _url; }; - } // namespace Ingen #endif // INGEN_ENGINE_OSCCLIENTSENDER_HPP diff --git a/src/engine/OSCEngineReceiver.cpp b/src/engine/OSCEngineReceiver.cpp index 60cf483e..4a8ac58d 100644 --- a/src/engine/OSCEngineReceiver.cpp +++ b/src/engine/OSCEngineReceiver.cpp @@ -47,7 +47,6 @@ namespace Ingen { using namespace Shared; - /*! \page engine_osc_namespace Engine OSC Namespace Documentation * * <p>These are the commands the engine recognizes. A client can control every @@ -58,7 +57,6 @@ using namespace Shared; * See the "Client OSC Namespace Documentation" for details. */ - OSCEngineReceiver::OSCEngineReceiver(Engine& engine, size_t queue_size, uint16_t port) : QueuedEngineInterface(engine, queue_size) // FIXME , _server(NULL) @@ -124,7 +122,6 @@ OSCEngineReceiver::OSCEngineReceiver(Engine& engine, size_t queue_size, uint16_t Thread::set_name("OSCEngineReceiver"); } - OSCEngineReceiver::~OSCEngineReceiver() { deactivate(); @@ -141,7 +138,6 @@ OSCEngineReceiver::~OSCEngineReceiver() } } - void OSCEngineReceiver::activate_source() { @@ -151,7 +147,6 @@ OSCEngineReceiver::activate_source() _receive_thread->set_scheduling(SCHED_FIFO, 5); // Jack default appears to be 10 } - void OSCEngineReceiver::deactivate_source() { @@ -159,7 +154,6 @@ OSCEngineReceiver::deactivate_source() EventSource::deactivate_source(); } - /** Override the semaphore driven _run method of QueuedEngineInterface * to wait on OSC messages and prepare them right away in the same thread. */ @@ -185,7 +179,6 @@ OSCEngineReceiver::ReceiveThread::_run() } } - /** Create a new request for this message, if necessary. * * This is based on the fact that the current request is stored in a ref @@ -235,7 +228,6 @@ OSCEngineReceiver::set_response_address_cb(const char* path, const char* types, return 1; } - #ifdef LIBLO_BUNDLES int OSCEngineReceiver::_bundle_start_cb(lo_timetag time) @@ -244,7 +236,6 @@ OSCEngineReceiver::_bundle_start_cb(lo_timetag time) return 0; } - int OSCEngineReceiver::_bundle_end_cb() { @@ -253,7 +244,6 @@ OSCEngineReceiver::_bundle_end_cb() } #endif - void OSCEngineReceiver::error_cb(int num, const char* msg, const char* path) { @@ -264,7 +254,6 @@ OSCEngineReceiver::error_cb(int num, const char* msg, const char* path) error << " (" << msg << ")" << endl; } - /** \page engine_osc_namespace * <h2>/ping</h2> * \arg \b response-id (integer) @@ -280,7 +269,6 @@ OSCEngineReceiver::_ping_cb(const char* path, const char* types, lo_arg** argv, return 0; } - /** \page engine_osc_namespace * <h2>/ping_queued</h2> * \arg \b response-id (integer) @@ -297,7 +285,6 @@ OSCEngineReceiver::_ping_slow_cb(const char* path, const char* types, lo_arg** a return 0; } - /** \page engine_osc_namespace * <h2>/quit</h2> * \arg \b response-id (integer) @@ -314,7 +301,6 @@ OSCEngineReceiver::_quit_cb(const char* path, const char* types, lo_arg** argv, return 0; } - /** \page engine_osc_namespace * <h2>/register_client</h2> * \arg \b response-id (integer) @@ -336,7 +322,6 @@ OSCEngineReceiver::_register_client_cb(const char* path, const char* types, lo_a return 0; } - /** \page engine_osc_namespace * <h2>/unregister_client</h2> * \arg \b response-id (integer) @@ -355,7 +340,6 @@ OSCEngineReceiver::_unregister_client_cb(const char* path, const char* types, lo return 0; } - /** \page engine_osc_namespace * <h2>/load_plugins</h2> * \arg \b response-id (integer) @@ -369,7 +353,6 @@ OSCEngineReceiver::_load_plugins_cb(const char* path, const char* types, lo_arg* return 0; } - /** \page engine_osc_namespace * <h2>/activate</h2> * \arg \b response-id (integer) @@ -385,7 +368,6 @@ OSCEngineReceiver::_engine_activate_cb(const char* path, const char* types, lo_a return 0; } - /** \page engine_osc_namespace * <h2>/deactivate</h2> * \arg \b response-id (integer) @@ -399,7 +381,6 @@ OSCEngineReceiver::_engine_deactivate_cb(const char* path, const char* types, lo return 0; } - /** \page engine_osc_namespace * <h2>/get</h2> * \arg \b response-id (integer) @@ -414,7 +395,6 @@ OSCEngineReceiver::_get_cb(const char* path, const char* types, lo_arg** argv, i return 0; } - /** \page engine_osc_namespace * <h2>/put</h2> * \arg \b response-id (integer) @@ -436,7 +416,6 @@ OSCEngineReceiver::_put_cb(const char* path, const char* types, lo_arg** argv, i return 0; } - /** \page engine_osc_namespace * <h2>/move</h2> * \arg \b response-id (integer) @@ -455,7 +434,6 @@ OSCEngineReceiver::_move_cb(const char* path, const char* types, lo_arg** argv, return 0; } - /** \page engine_osc_namespace * <h2>/del</h2> * \arg \b response-id (integer) @@ -472,7 +450,6 @@ OSCEngineReceiver::_del_cb(const char* path, const char* types, lo_arg** argv, i return 0; } - /** \page engine_osc_namespace * <h2>/connect</h2> * \arg \b response-id (integer) @@ -491,7 +468,6 @@ OSCEngineReceiver::_connect_cb(const char* path, const char* types, lo_arg** arg return 0; } - /** \page engine_osc_namespace * <h2>/disconnect</h2> * \arg \b response-id (integer) @@ -510,7 +486,6 @@ OSCEngineReceiver::_disconnect_cb(const char* path, const char* types, lo_arg** return 0; } - /** \page engine_osc_namespace * <h2>/disconnect_all</h2> * \arg \b response-id (integer) @@ -529,7 +504,6 @@ OSCEngineReceiver::_disconnect_all_cb(const char* path, const char* types, lo_ar return 0; } - /** \page engine_osc_namespace * <h2>/note_on</h2> * \arg \b response-id (integer) @@ -552,7 +526,6 @@ OSCEngineReceiver::_note_on_cb(const char* path, const char* types, lo_arg** arg return 0; } - /** \page engine_osc_namespace * <h2>/note_off</h2> * \arg \b response-id (integer) @@ -573,7 +546,6 @@ OSCEngineReceiver::_note_off_cb(const char* path, const char* types, lo_arg** ar return 0; } - /** \page engine_osc_namespace * <h2>/all_notes_off</h2> * \arg \b response-id (integer) @@ -593,7 +565,6 @@ OSCEngineReceiver::_all_notes_off_cb(const char* path, const char* types, lo_arg return 0; } - /** \page engine_osc_namespace * <h2>/set_property</h2> * \arg \b response-id (integer) @@ -618,7 +589,6 @@ OSCEngineReceiver::_set_property_cb(const char* path, const char* types, lo_arg* return 0; } - /** \page engine_osc_namespace * <h2>/request_property</h2> * \arg \b response-id (integer) @@ -637,10 +607,8 @@ OSCEngineReceiver::_request_property_cb(const char* path, const char* types, lo_ return 0; } - // Static Callbacks // - // Display incoming OSC messages (for debugging purposes) int OSCEngineReceiver::generic_cb(const char* path, const char* types, lo_arg** argv, int argc, lo_message msg, void* user_data) @@ -656,7 +624,6 @@ OSCEngineReceiver::generic_cb(const char* path, const char* types, lo_arg** argv return 1; // not handled } - int OSCEngineReceiver::unknown_cb(const char* path, const char* types, lo_arg** argv, int argc, lo_message msg, void* user_data) { @@ -674,5 +641,4 @@ OSCEngineReceiver::unknown_cb(const char* path, const char* types, lo_arg** argv return 0; } - } // namespace Ingen diff --git a/src/engine/OSCEngineReceiver.hpp b/src/engine/OSCEngineReceiver.hpp index 02fdfe00..e143448b 100644 --- a/src/engine/OSCEngineReceiver.hpp +++ b/src/engine/OSCEngineReceiver.hpp @@ -30,7 +30,6 @@ class JackDriver; class NodeFactory; class PatchImpl; - /* Some boilerplate killing macros... */ #define LO_HANDLER_ARGS const char* path, const char* types, lo_arg** argv, int argc, lo_message msg @@ -42,10 +41,8 @@ int _##name##_cb (LO_HANDLER_ARGS);\ inline static int name##_cb(LO_HANDLER_ARGS, void* myself)\ { return ((OSCEngineReceiver*)myself)->_##name##_cb(path, types, argv, argc, msg); } - /* FIXME: Make this receive and preprocess in the same thread? */ - /** Receives OSC messages from liblo. * * This inherits from QueuedEngineInterface and calls it's own functions @@ -120,7 +117,6 @@ private: lo_server _server; }; - } // namespace Ingen #endif // INGEN_ENGINE_OSCENGINERECEIVER_HPP diff --git a/src/engine/ObjectBuffer.cpp b/src/engine/ObjectBuffer.cpp index 4e1f459a..7f4d4270 100644 --- a/src/engine/ObjectBuffer.cpp +++ b/src/engine/ObjectBuffer.cpp @@ -34,7 +34,6 @@ namespace Ingen { using namespace Shared; - /** Allocate a new object buffer. * \a capacity is in bytes, including LV2_Atom header */ @@ -58,13 +57,11 @@ ObjectBuffer::ObjectBuffer(BufferFactory& bufs, size_t capacity) clear(); } - ObjectBuffer::~ObjectBuffer() { free(_buf); } - void ObjectBuffer::clear() { @@ -73,7 +70,6 @@ ObjectBuffer::clear() _buf->size = 0; } - void ObjectBuffer::copy(Context& context, const Buffer* src_buf) { @@ -86,7 +82,6 @@ ObjectBuffer::copy(Context& context, const Buffer* src_buf) memcpy(_buf, src->_buf, sizeof(LV2_Atom) + src_buf->size()); } - void ObjectBuffer::resize(size_t size) { @@ -100,7 +95,6 @@ ObjectBuffer::resize(size_t size) clear(); } - void* ObjectBuffer::port_data(PortType port_type, SampleCount offset) { @@ -122,7 +116,6 @@ ObjectBuffer::port_data(PortType port_type, SampleCount offset) } } - const void* ObjectBuffer::port_data(PortType port_type, SampleCount offset) const { @@ -144,13 +137,11 @@ ObjectBuffer::port_data(PortType port_type, SampleCount offset) const } } - void ObjectBuffer::prepare_write(Context& context) { _buf->size = _size - sizeof(LV2_Atom); } - } // namespace Ingen diff --git a/src/engine/ObjectBuffer.hpp b/src/engine/ObjectBuffer.hpp index 7066c025..86cfda59 100644 --- a/src/engine/ObjectBuffer.hpp +++ b/src/engine/ObjectBuffer.hpp @@ -49,7 +49,6 @@ private: LV2_Atom* _buf; ///< Contents }; - } // namespace Ingen #endif // INGEN_ENGINE_OBJECTBUFFER_HPP diff --git a/src/engine/ObjectSender.cpp b/src/engine/ObjectSender.cpp index ee977fdc..bb692021 100644 --- a/src/engine/ObjectSender.cpp +++ b/src/engine/ObjectSender.cpp @@ -56,7 +56,6 @@ ObjectSender::send_object(ClientInterface* client, const GraphObjectImpl* object } } - void ObjectSender::send_patch(ClientInterface* client, const PatchImpl* patch, bool recursive, bool bundle) { @@ -95,7 +94,6 @@ ObjectSender::send_patch(ClientInterface* client, const PatchImpl* patch, bool r client->transfer_end(); } - /** Sends a node or a patch */ void ObjectSender::send_node(ClientInterface* client, const NodeImpl* node, bool recursive, bool bundle) @@ -127,7 +125,6 @@ ObjectSender::send_node(ClientInterface* client, const NodeImpl* node, bool recu client->transfer_end(); } - void ObjectSender::send_port(ClientInterface* client, const PortImpl* port, bool bundle) { @@ -146,6 +143,5 @@ ObjectSender::send_port(ClientInterface* client, const PortImpl* port, bool bund client->bundle_end(); } - } // namespace Ingen diff --git a/src/engine/ObjectSender.hpp b/src/engine/ObjectSender.hpp index ab7884b3..a61f6449 100644 --- a/src/engine/ObjectSender.hpp +++ b/src/engine/ObjectSender.hpp @@ -28,7 +28,6 @@ class NodeImpl; class PortImpl; class PluginImpl; - /** Utility class for sending GraphObjects to clients through ClientInterface. * * While ClientInterface is the direct low level message-based interface diff --git a/src/engine/OutputPort.cpp b/src/engine/OutputPort.cpp index d647fbdd..f66666fb 100644 --- a/src/engine/OutputPort.cpp +++ b/src/engine/OutputPort.cpp @@ -48,7 +48,6 @@ OutputPort::OutputPort(BufferFactory& bufs, setup_buffers(bufs, poly); } - bool OutputPort::get_buffers(BufferFactory& bufs, Raul::Array<BufferFactory::Ref>* buffers, uint32_t poly) { @@ -58,7 +57,6 @@ OutputPort::get_buffers(BufferFactory& bufs, Raul::Array<BufferFactory::Ref>* bu return true; } - void OutputPort::pre_process(Context& context) { @@ -66,7 +64,6 @@ OutputPort::pre_process(Context& context) _buffers->at(v)->prepare_write(context); } - void OutputPort::post_process(Context& context) { @@ -77,5 +74,4 @@ OutputPort::post_process(Context& context) broadcast_value(context, false); } - } // namespace Ingen diff --git a/src/engine/OutputPort.hpp b/src/engine/OutputPort.hpp index eb78bf0a..fc1434af 100644 --- a/src/engine/OutputPort.hpp +++ b/src/engine/OutputPort.hpp @@ -24,7 +24,6 @@ namespace Ingen { - /** An output port. * * Output ports always have a locally allocated buffer, and buffer() will @@ -59,7 +58,6 @@ public: bool is_output() const { return true; } }; - } // namespace Ingen #endif // INGEN_ENGINE_OUTPUTPORT_HPP diff --git a/src/engine/PatchImpl.cpp b/src/engine/PatchImpl.cpp index a9be238f..a0bf166c 100644 --- a/src/engine/PatchImpl.cpp +++ b/src/engine/PatchImpl.cpp @@ -40,7 +40,6 @@ namespace Ingen { using namespace Shared; - PatchImpl::PatchImpl(Engine& engine, const Raul::Symbol& symbol, uint32_t poly, PatchImpl* parent, SampleRate srate, uint32_t internal_poly) : NodeImpl(new PatchPlugin(*engine.world()->uris().get(), engine.world()->uris()->ingen_Patch.c_str(), "patch", "Ingen Patch"), @@ -53,7 +52,6 @@ PatchImpl::PatchImpl(Engine& engine, const Raul::Symbol& symbol, uint32_t poly, assert(internal_poly >= 1); } - PatchImpl::~PatchImpl() { assert(!_activated); @@ -62,7 +60,6 @@ PatchImpl::~PatchImpl() delete _plugin; } - void PatchImpl::activate(BufferFactory& bufs) { @@ -74,7 +71,6 @@ PatchImpl::activate(BufferFactory& bufs) assert(_activated); } - void PatchImpl::deactivate() { @@ -91,7 +87,6 @@ PatchImpl::deactivate() assert(!_activated); } - void PatchImpl::disable() { @@ -104,7 +99,6 @@ PatchImpl::disable() (*i)->clear_buffers(); } - bool PatchImpl::prepare_internal_poly(BufferFactory& bufs, uint32_t poly) { @@ -122,7 +116,6 @@ PatchImpl::prepare_internal_poly(BufferFactory& bufs, uint32_t poly) return true; } - bool PatchImpl::apply_internal_poly(ProcessContext& context, BufferFactory& bufs, Raul::Maid& maid, uint32_t poly) { @@ -151,7 +144,6 @@ PatchImpl::apply_internal_poly(ProcessContext& context, BufferFactory& bufs, Rau return true; } - /** Run the patch for the specified number of frames. * * Calls all Nodes in (roughly, if parallel) the order _compiled_patch specifies. @@ -182,7 +174,6 @@ PatchImpl::process(ProcessContext& context) NodeImpl::post_process(context); } - void PatchImpl::process_parallel(ProcessContext& context) { @@ -203,7 +194,6 @@ PatchImpl::process_parallel(ProcessContext& context) context.slaves()[i]->whip(cp, i+1, context); } - /* Process ourself until everything is done * This is analogous to ProcessSlave::_whipped(), but this is the master * (i.e. what the main Jack process thread calls). Where ProcessSlave @@ -249,7 +239,6 @@ PatchImpl::process_parallel(ProcessContext& context) context.slaves()[i]->finish(); } - void PatchImpl::process_single(ProcessContext& context) { @@ -257,7 +246,6 @@ PatchImpl::process_single(ProcessContext& context) (*_compiled_patch)[i].node()->process(context); } - void PatchImpl::set_buffer_size(Context& context, BufferFactory& bufs, PortType type, size_t size) { @@ -267,10 +255,8 @@ PatchImpl::set_buffer_size(Context& context, BufferFactory& bufs, PortType type, (*_compiled_patch)[i].node()->set_buffer_size(context, bufs, type, size); } - // Patch specific stuff - /** Add a node. * Preprocessing thread only. */ @@ -286,7 +272,6 @@ PatchImpl::add_node(List<NodeImpl*>::Node* ln) _nodes.push_back(ln); } - /** Remove a node. * Preprocessing thread only. */ @@ -301,7 +286,6 @@ PatchImpl::remove_node(const Raul::Symbol& symbol) return NULL; } - void PatchImpl::add_connection(SharedPtr<ConnectionImpl> c) { @@ -309,7 +293,6 @@ PatchImpl::add_connection(SharedPtr<ConnectionImpl> c) _connections.insert(make_pair(make_pair(c->src_port(), c->dst_port()), c)); } - /** Remove a connection. * Preprocessing thread only. */ @@ -328,7 +311,6 @@ PatchImpl::remove_connection(const PortImpl* src_port, const PortImpl* dst_port) } } - bool PatchImpl::has_connection(const PortImpl* src_port, const PortImpl* dst_port) const { @@ -337,7 +319,6 @@ PatchImpl::has_connection(const PortImpl* src_port, const PortImpl* dst_port) co return (i != _connections.end()); } - uint32_t PatchImpl::num_ports() const { @@ -347,7 +328,6 @@ PatchImpl::num_ports() const return _input_ports.size() + _output_ports.size(); } - /** Create a port. Not realtime safe. */ PortImpl* @@ -364,7 +344,6 @@ PatchImpl::create_port(BufferFactory& bufs, const string& name, PortType type, s type, Raul::Atom(), buffer_size, is_output); } - /** Remove port from ports list used in pre-processing thread. * * Port is not removed from ports array for process thread (which could be @@ -402,7 +381,6 @@ PatchImpl::remove_port(const string& symbol) return ret; } - /** Remove all ports from ports list used in pre-processing thread. * * Ports are not removed from ports array for process thread (which could be @@ -419,7 +397,6 @@ PatchImpl::clear_ports() _output_ports.clear(); } - Raul::Array<PortImpl*>* PatchImpl::build_ports_array() const { @@ -438,7 +415,6 @@ PatchImpl::build_ports_array() const return result; } - /** Find the process order for this Patch. * * The process order is a flat list that the patch will execute in order @@ -487,5 +463,4 @@ PatchImpl::compile() const return compiled_patch; } - } // namespace Ingen diff --git a/src/engine/PatchImpl.hpp b/src/engine/PatchImpl.hpp index 1ecb5bae..4a333812 100644 --- a/src/engine/PatchImpl.hpp +++ b/src/engine/PatchImpl.hpp @@ -37,7 +37,6 @@ class Context; class Engine; class ProcessContext; - /** A group of nodes in a graph, possibly polyphonic. * * Note that this is also a Node, just one which contains Nodes. @@ -141,8 +140,6 @@ private: bool _process; }; - - /** Private helper for compile */ inline void PatchImpl::compile_recursive(NodeImpl* n, CompiledPatch* output) const @@ -160,7 +157,6 @@ PatchImpl::compile_recursive(NodeImpl* n, CompiledPatch* output) const output->push_back(CompiledNode(n, n->providers()->size(), n->dependants())); } - } // namespace Ingen #endif // INGEN_ENGINE_PATCHIMPL_HPP diff --git a/src/engine/PatchPlugin.hpp b/src/engine/PatchPlugin.hpp index 72f3d4f0..e86e4dd3 100644 --- a/src/engine/PatchPlugin.hpp +++ b/src/engine/PatchPlugin.hpp @@ -27,7 +27,6 @@ namespace Ingen { class NodeImpl; - /** Implementation of a Patch plugin. * * Patches don't actually work like this yet... @@ -60,7 +59,6 @@ private: const std::string _name; }; - } // namespace Ingen #endif // INGEN_ENGINE_PATCHPLUGIN_HPP diff --git a/src/engine/PluginImpl.cpp b/src/engine/PluginImpl.cpp index 208db373..2cc0db7f 100644 --- a/src/engine/PluginImpl.cpp +++ b/src/engine/PluginImpl.cpp @@ -23,7 +23,6 @@ using namespace Raul; namespace Ingen { - void PluginImpl::load() { @@ -35,7 +34,6 @@ PluginImpl::load() } } - void PluginImpl::unload() { @@ -46,6 +44,5 @@ PluginImpl::unload() } } - } // namespace Ingen diff --git a/src/engine/PluginImpl.hpp b/src/engine/PluginImpl.hpp index fca6320e..d058d046 100644 --- a/src/engine/PluginImpl.hpp +++ b/src/engine/PluginImpl.hpp @@ -36,7 +36,6 @@ class NodeImpl; class Engine; class BufferFactory; - /** Implementation of a plugin (internal code, or a loaded shared library). * * Conceptually, a Node is an instance of this. @@ -78,7 +77,6 @@ protected: Glib::Module* _module; }; - } // namespace Ingen #endif // INGEN_ENGINE_PLUGINIMPL_HPP diff --git a/src/engine/PortImpl.cpp b/src/engine/PortImpl.cpp index a2bb594b..198a43b5 100644 --- a/src/engine/PortImpl.cpp +++ b/src/engine/PortImpl.cpp @@ -39,7 +39,6 @@ namespace Ingen { using namespace Shared; - PortImpl::PortImpl(BufferFactory& bufs, NodeImpl* const node, const Raul::Symbol& name, @@ -78,20 +77,17 @@ PortImpl::PortImpl(BufferFactory& bufs, _broadcast = true; // send activity blips } - PortImpl::~PortImpl() { delete _buffers; } - bool PortImpl::supports(const Raul::URI& value_type) const { return has_property(_bufs.uris().atom_supports, value_type); } - Raul::Array<BufferFactory::Ref>* PortImpl::set_buffers(Raul::Array<BufferFactory::Ref>* buffers) { @@ -108,7 +104,6 @@ PortImpl::set_buffers(Raul::Array<BufferFactory::Ref>* buffers) return ret; } - bool PortImpl::prepare_poly(BufferFactory& bufs, uint32_t poly) { @@ -130,7 +125,6 @@ PortImpl::prepare_poly(BufferFactory& bufs, uint32_t poly) return true; } - void PortImpl::prepare_poly_buffers(BufferFactory& bufs) { @@ -138,7 +132,6 @@ PortImpl::prepare_poly_buffers(BufferFactory& bufs) get_buffers(bufs, _prepared_buffers, _prepared_buffers->size()); } - bool PortImpl::apply_poly(Maid& maid, uint32_t poly) { @@ -171,7 +164,6 @@ PortImpl::apply_poly(Maid& maid, uint32_t poly) return true; } - void PortImpl::set_buffer_size(Context& context, BufferFactory& bufs, size_t size) { @@ -183,7 +175,6 @@ PortImpl::set_buffer_size(Context& context, BufferFactory& bufs, size_t size) connect_buffers(); } - void PortImpl::connect_buffers(SampleCount offset) { @@ -191,7 +182,6 @@ PortImpl::connect_buffers(SampleCount offset) PortImpl::parent_node()->set_port_buffer(v, _index, buffer(v), offset); } - void PortImpl::recycle_buffers() { @@ -199,7 +189,6 @@ PortImpl::recycle_buffers() _buffers->at(v) = NULL; } - void PortImpl::clear_buffers() { @@ -207,7 +196,6 @@ PortImpl::clear_buffers() buffer(v)->clear(); } - void PortImpl::broadcast_value(Context& context, bool force) { @@ -238,7 +226,6 @@ PortImpl::broadcast_value(Context& context, bool force) } } - void PortImpl::set_context(Context::ID c) { @@ -254,7 +241,6 @@ PortImpl::set_context(Context::ID c) } } - PortType PortImpl::buffer_type() const { @@ -262,5 +248,4 @@ PortImpl::buffer_type() const return *_types.begin(); } - } // namespace Ingen diff --git a/src/engine/PortImpl.hpp b/src/engine/PortImpl.hpp index 58fd6ea5..605dfbed 100644 --- a/src/engine/PortImpl.hpp +++ b/src/engine/PortImpl.hpp @@ -38,7 +38,6 @@ class NodeImpl; class Buffer; class BufferFactory; - /** A port on a Node. * * This is a non-template abstract base class, which basically exists so @@ -166,7 +165,6 @@ protected: Raul::Array<BufferFactory::Ref>* _prepared_buffers; }; - } // namespace Ingen #endif // INGEN_ENGINE_PORTIMPL_HPP diff --git a/src/engine/PostProcessor.cpp b/src/engine/PostProcessor.cpp index 5a30ff52..f385e423 100644 --- a/src/engine/PostProcessor.cpp +++ b/src/engine/PostProcessor.cpp @@ -31,7 +31,6 @@ using namespace Raul; namespace Ingen { - PostProcessor::PostProcessor(Engine& engine, size_t queue_size) : _engine(engine) , _max_time(0) @@ -41,13 +40,11 @@ PostProcessor::PostProcessor(Engine& engine, size_t queue_size) { } - PostProcessor::~PostProcessor() { free(_event_buffer); } - void PostProcessor::process() { @@ -90,5 +87,4 @@ PostProcessor::process() } } - } // namespace Ingen diff --git a/src/engine/PostProcessor.hpp b/src/engine/PostProcessor.hpp index 30002d9c..e436b5d3 100644 --- a/src/engine/PostProcessor.hpp +++ b/src/engine/PostProcessor.hpp @@ -27,7 +27,6 @@ namespace Ingen { class Event; class Engine; - /** Processor for Events after leaving the audio thread. * * The audio thread pushes events to this when it is done with them (which @@ -62,7 +61,6 @@ private: uint8_t* _event_buffer; }; - } // namespace Ingen #endif // INGEN_ENGINE_POSTPROCESSOR_HPP diff --git a/src/engine/ProcessContext.hpp b/src/engine/ProcessContext.hpp index 9e43cc3d..9faf967e 100644 --- a/src/engine/ProcessContext.hpp +++ b/src/engine/ProcessContext.hpp @@ -47,8 +47,6 @@ private: Slaves _slaves; }; - - } // namespace Ingen #endif // INGEN_ENGINE_PROCESSCONTEXT_HPP diff --git a/src/engine/ProcessSlave.cpp b/src/engine/ProcessSlave.cpp index a02d1140..17744696 100644 --- a/src/engine/ProcessSlave.cpp +++ b/src/engine/ProcessSlave.cpp @@ -23,10 +23,8 @@ using namespace std; namespace Ingen { - uint32_t ProcessSlave::_next_id = 0; - void ProcessSlave::_whipped() { @@ -70,5 +68,4 @@ ProcessSlave::_whipped() _state = STATE_FINISHED; } - } // namespace Ingen diff --git a/src/engine/ProcessSlave.hpp b/src/engine/ProcessSlave.hpp index 1d3c169d..f69d75c5 100644 --- a/src/engine/ProcessSlave.hpp +++ b/src/engine/ProcessSlave.hpp @@ -33,7 +33,6 @@ namespace Ingen { class NodeImpl; class CompiledPatch; - class ProcessSlave : protected Raul::Slave { public: ProcessSlave(Engine& engine, bool realtime) @@ -98,7 +97,6 @@ private: ProcessContext* _context; }; - } // namespace Ingen #endif // INGEN_ENGINE_PROCESSSLAVE_HPP diff --git a/src/engine/QueuedEngineInterface.cpp b/src/engine/QueuedEngineInterface.cpp index eea27126..f19ef551 100644 --- a/src/engine/QueuedEngineInterface.cpp +++ b/src/engine/QueuedEngineInterface.cpp @@ -43,7 +43,6 @@ QueuedEngineInterface::QueuedEngineInterface(Engine& engine, size_t queue_size) { } - SampleCount QueuedEngineInterface::now() const { @@ -55,7 +54,6 @@ QueuedEngineInterface::now() const return 0; } - void QueuedEngineInterface::set_next_response_id(int32_t id) { @@ -63,7 +61,6 @@ QueuedEngineInterface::set_next_response_id(int32_t id) _request->set_id(id); } - void QueuedEngineInterface::disable_responses() { @@ -71,10 +68,8 @@ QueuedEngineInterface::disable_responses() _request->set_id(0); } - /* *** EngineInterface implementation below here *** */ - void QueuedEngineInterface::register_client(ClientInterface* client) { @@ -87,7 +82,6 @@ QueuedEngineInterface::register_client(ClientInterface* client) } } - void QueuedEngineInterface::unregister_client(const URI& uri) { @@ -98,8 +92,6 @@ QueuedEngineInterface::unregister_client(const URI& uri) } } - - // Engine commands void QueuedEngineInterface::load_plugins() @@ -107,7 +99,6 @@ QueuedEngineInterface::load_plugins() push_queued(new Events::LoadPlugins(_engine, _request, now())); } - void QueuedEngineInterface::activate() { @@ -121,14 +112,12 @@ QueuedEngineInterface::activate() in_activate = false; } - void QueuedEngineInterface::deactivate() { push_queued(new Events::Deactivate(_engine, _request, now())); } - void QueuedEngineInterface::quit() { @@ -136,7 +125,6 @@ QueuedEngineInterface::quit() _engine.quit(); } - // Bundle commands void @@ -145,17 +133,14 @@ QueuedEngineInterface::bundle_begin() _in_bundle = true; } - void QueuedEngineInterface::bundle_end() { _in_bundle = false; } - // Object commands - void QueuedEngineInterface::put(const URI& uri, const Resource::Properties& properties, @@ -164,7 +149,6 @@ QueuedEngineInterface::put(const URI& uri, push_queued(new Events::SetMetadata(_engine, _request, now(), true, ctx, uri, properties)); } - void QueuedEngineInterface::delta(const URI& uri, const Shared::Resource::Properties& remove, @@ -173,7 +157,6 @@ QueuedEngineInterface::delta(const URI& uri, push_queued(new Events::SetMetadata(_engine, _request, now(), false, Resource::DEFAULT, uri, add, remove)); } - void QueuedEngineInterface::move(const Path& old_path, const Path& new_path) @@ -181,14 +164,12 @@ QueuedEngineInterface::move(const Path& old_path, push_queued(new Events::Move(_engine, _request, now(), old_path, new_path)); } - void QueuedEngineInterface::del(const Path& path) { push_queued(new Events::Delete(_engine, _request, now(), path)); } - void QueuedEngineInterface::connect(const Path& src_port_path, const Path& dst_port_path) @@ -197,7 +178,6 @@ QueuedEngineInterface::connect(const Path& src_port_path, } - void QueuedEngineInterface::disconnect(const Path& src_port_path, const Path& dst_port_path) @@ -205,7 +185,6 @@ QueuedEngineInterface::disconnect(const Path& src_port_path, push_queued(new Events::Disconnect(_engine, _request, now(), src_port_path, dst_port_path)); } - void QueuedEngineInterface::disconnect_all(const Path& patch_path, const Path& path) @@ -213,7 +192,6 @@ QueuedEngineInterface::disconnect_all(const Path& patch_path, push_queued(new Events::DisconnectAll(_engine, _request, now(), patch_path, path)); } - void QueuedEngineInterface::set_property(const URI& uri, const URI& predicate, @@ -234,19 +212,16 @@ QueuedEngineInterface::ping() push_queued(new Events::Ping(_engine, _request, now())); } - void QueuedEngineInterface::get(const URI& uri) { push_queued(new Events::Get(_engine, _request, now(), uri)); } - void QueuedEngineInterface::request_property(const URI& uri, const URI& key) { push_queued(new Events::RequestMetadata(_engine, _request, now(), Resource::DEFAULT, uri, key)); } - } // namespace Ingen diff --git a/src/engine/QueuedEngineInterface.hpp b/src/engine/QueuedEngineInterface.hpp index 6cdb618d..d80c0e55 100644 --- a/src/engine/QueuedEngineInterface.hpp +++ b/src/engine/QueuedEngineInterface.hpp @@ -34,7 +34,6 @@ namespace Ingen { class Engine; - /** A queued (preprocessed) event source / interface. * * This is the bridge between the EngineInterface presented to the client, and @@ -115,7 +114,6 @@ private: SampleCount now() const; }; - } // namespace Ingen #endif // INGEN_ENGINE_QUEUEDENGINEINTERFACE_HPP diff --git a/src/engine/QueuedEvent.cpp b/src/engine/QueuedEvent.cpp index 0d73ba00..89549b87 100644 --- a/src/engine/QueuedEvent.cpp +++ b/src/engine/QueuedEvent.cpp @@ -21,7 +21,6 @@ namespace Ingen { - void QueuedEvent::pre_process() { @@ -30,7 +29,6 @@ QueuedEvent::pre_process() _pre_processed = true; } - void QueuedEvent::execute(ProcessContext& context) { @@ -45,6 +43,5 @@ QueuedEvent::execute(ProcessContext& context) Event::execute(context); } - } // namespace Ingen diff --git a/src/engine/QueuedEvent.hpp b/src/engine/QueuedEvent.hpp index 3fe75ffb..e846466d 100644 --- a/src/engine/QueuedEvent.hpp +++ b/src/engine/QueuedEvent.hpp @@ -22,7 +22,6 @@ namespace Ingen { - /** An Event with a not-time-critical preprocessing stage. * * These events are events that aren't able to be executed immediately by the @@ -71,7 +70,6 @@ protected: bool _blocking; }; - } // namespace Ingen #endif // INGEN_ENGINE_QUEUEDEVENT_HPP diff --git a/src/engine/Request.hpp b/src/engine/Request.hpp index 17930554..2fbbde27 100644 --- a/src/engine/Request.hpp +++ b/src/engine/Request.hpp @@ -25,7 +25,6 @@ namespace Ingen { - /** Record of a request (used to respond to clients). * * This is a glorified std::pair<ClientInterface*, int32_t> for replying @@ -72,7 +71,6 @@ private: int32_t _id; }; - } // namespace Ingen #endif // INGEN_ENGINE_REQUEST_HPP diff --git a/src/engine/ThreadManager.hpp b/src/engine/ThreadManager.hpp index 45ad410b..a8e913e0 100644 --- a/src/engine/ThreadManager.hpp +++ b/src/engine/ThreadManager.hpp @@ -23,14 +23,12 @@ namespace Ingen { - enum ThreadID { THREAD_PRE_PROCESS, THREAD_PROCESS, THREAD_MESSAGE, }; - class ThreadManager { public: inline static bool thread_is(ThreadID id) { @@ -51,7 +49,6 @@ public: static bool single_threaded; }; - } // namespace Ingen #endif // INGEN_ENGINE_THREADMANAGER_HPP diff --git a/src/engine/events/Connect.cpp b/src/engine/events/Connect.cpp index 61329f03..bd464fc7 100644 --- a/src/engine/events/Connect.cpp +++ b/src/engine/events/Connect.cpp @@ -41,7 +41,6 @@ namespace Events { using namespace Shared; - Connect::Connect(Engine& engine, SharedPtr<Request> request, SampleCount timestamp, const Path& src_port_path, const Path& dst_port_path) : QueuedEvent(engine, request, timestamp) , _src_port_path(src_port_path) @@ -55,7 +54,6 @@ Connect::Connect(Engine& engine, SharedPtr<Request> request, SampleCount timesta { } - void Connect::pre_process() { @@ -149,7 +147,6 @@ Connect::pre_process() QueuedEvent::pre_process(); } - void Connect::execute(ProcessContext& context) { @@ -169,7 +166,6 @@ Connect::execute(ProcessContext& context) } } - void Connect::post_process() { @@ -203,7 +199,6 @@ Connect::post_process() _request->respond_error(ss.str()); } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Connect.hpp b/src/engine/events/Connect.hpp index 02e914af..75639003 100644 --- a/src/engine/events/Connect.hpp +++ b/src/engine/events/Connect.hpp @@ -41,7 +41,6 @@ class CompiledPatch; namespace Events { - /** Make a Connection between two Ports. * * \ingroup engine @@ -81,7 +80,6 @@ private: Raul::Array<BufferFactory::Ref>* _buffers; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/CreateNode.cpp b/src/engine/events/CreateNode.cpp index e5f8d721..25ceaa3a 100644 --- a/src/engine/events/CreateNode.cpp +++ b/src/engine/events/CreateNode.cpp @@ -66,7 +66,6 @@ CreateNode::CreateNode( _polyphonic = true; } - void CreateNode::pre_process() { @@ -105,7 +104,6 @@ CreateNode::pre_process() QueuedEvent::pre_process(); } - void CreateNode::execute(ProcessContext& context) { @@ -117,7 +115,6 @@ CreateNode::execute(ProcessContext& context) } } - void CreateNode::post_process() { @@ -144,7 +141,6 @@ CreateNode::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/CreateNode.hpp b/src/engine/events/CreateNode.hpp index 1e341c1a..f1a14464 100644 --- a/src/engine/events/CreateNode.hpp +++ b/src/engine/events/CreateNode.hpp @@ -31,7 +31,6 @@ class CompiledPatch; namespace Events { - /** An event to load a Node and insert it into a Patch. * * \ingroup engine @@ -64,7 +63,6 @@ private: Shared::Resource::Properties _properties; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/CreatePatch.cpp b/src/engine/events/CreatePatch.cpp index f5e07797..cb972cf9 100644 --- a/src/engine/events/CreatePatch.cpp +++ b/src/engine/events/CreatePatch.cpp @@ -36,7 +36,6 @@ namespace Events { using namespace Shared; - CreatePatch::CreatePatch( Engine& engine, SharedPtr<Request> request, @@ -54,7 +53,6 @@ CreatePatch::CreatePatch( { } - void CreatePatch::pre_process() { @@ -108,7 +106,6 @@ CreatePatch::pre_process() QueuedEvent::pre_process(); } - void CreatePatch::execute(ProcessContext& context) { @@ -128,7 +125,6 @@ CreatePatch::execute(ProcessContext& context) } } - void CreatePatch::post_process() { @@ -163,7 +159,6 @@ CreatePatch::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/CreatePatch.hpp b/src/engine/events/CreatePatch.hpp index 84c0c0aa..5a272541 100644 --- a/src/engine/events/CreatePatch.hpp +++ b/src/engine/events/CreatePatch.hpp @@ -28,7 +28,6 @@ class CompiledPatch; namespace Events { - /** Creates a new Patch. * * \ingroup engine @@ -60,9 +59,7 @@ private: Shared::Resource::Properties _properties; }; - } // namespace Ingen } // namespace Events - #endif // INGEN_EVENTS_CREATEPATCH_HPP diff --git a/src/engine/events/CreatePort.cpp b/src/engine/events/CreatePort.cpp index cb05a020..eda6dedd 100644 --- a/src/engine/events/CreatePort.cpp +++ b/src/engine/events/CreatePort.cpp @@ -42,7 +42,6 @@ namespace Events { using namespace Shared; - CreatePort::CreatePort( Engine& engine, SharedPtr<Request> request, @@ -73,7 +72,6 @@ CreatePort::CreatePort( _error = UNKNOWN_TYPE; } - void CreatePort::pre_process() { @@ -143,7 +141,6 @@ CreatePort::pre_process() QueuedEvent::pre_process(); } - void CreatePort::execute(ProcessContext& context) { @@ -163,7 +160,6 @@ CreatePort::execute(ProcessContext& context) _request->unblock(); } - void CreatePort::post_process() { @@ -191,7 +187,6 @@ CreatePort::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/CreatePort.hpp b/src/engine/events/CreatePort.hpp index 1bee8be6..cac3c2b6 100644 --- a/src/engine/events/CreatePort.hpp +++ b/src/engine/events/CreatePort.hpp @@ -32,7 +32,6 @@ class DriverPort; namespace Events { - /** An event to add a Port to a Patch. * * \ingroup engine @@ -74,7 +73,6 @@ private: Shared::Resource::Properties _properties; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Deactivate.hpp b/src/engine/events/Deactivate.hpp index 7f664455..34fdd80b 100644 --- a/src/engine/events/Deactivate.hpp +++ b/src/engine/events/Deactivate.hpp @@ -24,7 +24,6 @@ namespace Ingen { namespace Events { - /** Deactivates the engine. * * \ingroup engine @@ -42,7 +41,6 @@ public: } }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Delete.cpp b/src/engine/events/Delete.cpp index a628be76..5646b9c5 100644 --- a/src/engine/events/Delete.cpp +++ b/src/engine/events/Delete.cpp @@ -37,7 +37,6 @@ namespace Events { using namespace Shared; - Delete::Delete(Engine& engine, SharedPtr<Request> request, FrameTime time, const Raul::Path& path) : QueuedEvent(engine, request, time, true) , _path(path) @@ -54,13 +53,11 @@ Delete::Delete(Engine& engine, SharedPtr<Request> request, FrameTime time, const assert(request->source()); } - Delete::~Delete() { delete _disconnect_event; } - void Delete::pre_process() { @@ -127,7 +124,6 @@ Delete::pre_process() QueuedEvent::pre_process(); } - void Delete::execute(ProcessContext& context) { @@ -166,7 +162,6 @@ Delete::execute(ProcessContext& context) _request->unblock(); } - void Delete::post_process() { @@ -207,6 +202,5 @@ Delete::post_process() _engine.maid()->push(_garbage); } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Delete.hpp b/src/engine/events/Delete.hpp index c8a6ee96..57dac59b 100644 --- a/src/engine/events/Delete.hpp +++ b/src/engine/events/Delete.hpp @@ -40,7 +40,6 @@ namespace Events { class DisconnectAll; - /** \page methods * <h2>DELETE</h2> * As per WebDAV (RFC4918 S9.6). @@ -88,7 +87,6 @@ private: SharedPtr< Raul::Table<Raul::Path, SharedPtr<Shared::GraphObject> > > _removed_table; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Disconnect.cpp b/src/engine/events/Disconnect.cpp index a05a2792..633871c3 100644 --- a/src/engine/events/Disconnect.cpp +++ b/src/engine/events/Disconnect.cpp @@ -38,7 +38,6 @@ using namespace Raul; namespace Ingen { namespace Events { - Disconnect::Disconnect( Engine& engine, SharedPtr<Request> request, @@ -59,7 +58,6 @@ Disconnect::Disconnect( { } - Disconnect::Disconnect( Engine& engine, SharedPtr<Request> request, @@ -81,7 +79,6 @@ Disconnect::Disconnect( { } - void Disconnect::pre_process() { @@ -166,14 +163,12 @@ Disconnect::pre_process() _clear_dst_port = true; } - if (!_internal && _patch->enabled()) _compiled_patch = _patch->compile(); QueuedEvent::pre_process(); } - void Disconnect::execute(ProcessContext& context) { @@ -221,7 +216,6 @@ Disconnect::execute(ProcessContext& context) } } - void Disconnect::post_process() { @@ -261,7 +255,6 @@ Disconnect::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Disconnect.hpp b/src/engine/events/Disconnect.hpp index 28239332..503458be 100644 --- a/src/engine/events/Disconnect.hpp +++ b/src/engine/events/Disconnect.hpp @@ -38,7 +38,6 @@ class PortImpl; namespace Events { - /** Make a Connection between two Ports. * * \ingroup engine @@ -96,7 +95,6 @@ private: bool _clear_dst_port; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/DisconnectAll.cpp b/src/engine/events/DisconnectAll.cpp index 0fdb0cb8..cc49fb17 100644 --- a/src/engine/events/DisconnectAll.cpp +++ b/src/engine/events/DisconnectAll.cpp @@ -40,7 +40,6 @@ using namespace Raul; namespace Ingen { namespace Events { - DisconnectAll::DisconnectAll(Engine& engine, SharedPtr<Request> request, SampleCount timestamp, const Path& parent_path, const Path& node_path) : QueuedEvent(engine, request, timestamp) , _parent_path(parent_path) @@ -53,7 +52,6 @@ DisconnectAll::DisconnectAll(Engine& engine, SharedPtr<Request> request, SampleC { } - /** Internal version for use by other events. */ DisconnectAll::DisconnectAll(Engine& engine, PatchImpl* parent, GraphObjectImpl* object) @@ -68,14 +66,12 @@ DisconnectAll::DisconnectAll(Engine& engine, PatchImpl* parent, GraphObjectImpl* { } - DisconnectAll::~DisconnectAll() { for (Raul::List<Disconnect*>::iterator i = _disconnect_events.begin(); i != _disconnect_events.end(); ++i) delete (*i); } - void DisconnectAll::pre_process() { @@ -144,7 +140,6 @@ DisconnectAll::pre_process() QueuedEvent::pre_process(); } - void DisconnectAll::execute(ProcessContext& context) { @@ -160,7 +155,6 @@ DisconnectAll::execute(ProcessContext& context) _parent->compiled_patch(_compiled_patch); } - void DisconnectAll::post_process() { @@ -191,7 +185,6 @@ DisconnectAll::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/DisconnectAll.hpp b/src/engine/events/DisconnectAll.hpp index ae114977..57c5c495 100644 --- a/src/engine/events/DisconnectAll.hpp +++ b/src/engine/events/DisconnectAll.hpp @@ -33,7 +33,6 @@ namespace Events { class Disconnect; - /** An event to disconnect all connections to a Node. * * \ingroup engine @@ -79,9 +78,7 @@ private: bool _deleting; }; - } // namespace Ingen } // namespace Events - #endif // INGEN_EVENTS_DISCONNECTALL_HPP diff --git a/src/engine/events/Get.cpp b/src/engine/events/Get.cpp index 17c4699d..9769be86 100644 --- a/src/engine/events/Get.cpp +++ b/src/engine/events/Get.cpp @@ -32,7 +32,6 @@ using namespace Raul; namespace Ingen { namespace Events { - Get::Get( Engine& engine, SharedPtr<Request> request, @@ -45,7 +44,6 @@ Get::Get( { } - void Get::pre_process() { @@ -60,7 +58,6 @@ Get::pre_process() QueuedEvent::pre_process(); } - void Get::post_process() { @@ -80,7 +77,6 @@ Get::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Get.hpp b/src/engine/events/Get.hpp index ce5a839d..cb2dd7e4 100644 --- a/src/engine/events/Get.hpp +++ b/src/engine/events/Get.hpp @@ -29,7 +29,6 @@ class PluginImpl; namespace Events { - /** A request from a client to send an object. * * \ingroup engine @@ -53,7 +52,6 @@ private: NodeFactory::Plugins _plugins; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/LoadPlugins.cpp b/src/engine/events/LoadPlugins.cpp index eb4d2db7..81031e0d 100644 --- a/src/engine/events/LoadPlugins.cpp +++ b/src/engine/events/LoadPlugins.cpp @@ -24,7 +24,6 @@ namespace Ingen { namespace Events { - LoadPlugins::LoadPlugins(Engine& engine, SharedPtr<Request> request, SampleCount timestamp) : QueuedEvent(engine, request, timestamp, bool(request)) { @@ -47,7 +46,6 @@ LoadPlugins::post_process() _request->respond_ok(); } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/LoadPlugins.hpp b/src/engine/events/LoadPlugins.hpp index 3756ce7d..01920597 100644 --- a/src/engine/events/LoadPlugins.hpp +++ b/src/engine/events/LoadPlugins.hpp @@ -23,7 +23,6 @@ namespace Ingen { namespace Events { - /** Loads all plugins into the internal plugin database (in NodeFactory). * * \ingroup engine @@ -39,7 +38,6 @@ public: void post_process(); }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Move.cpp b/src/engine/events/Move.cpp index 5a568dd9..b2526101 100644 --- a/src/engine/events/Move.cpp +++ b/src/engine/events/Move.cpp @@ -33,7 +33,6 @@ namespace Events { using namespace Shared; - Move::Move(Engine& engine, SharedPtr<Request> request, SampleCount timestamp, const Path& path, const Path& new_path) : QueuedEvent(engine, request, timestamp) , _old_path(path) @@ -43,12 +42,10 @@ Move::Move(Engine& engine, SharedPtr<Request> request, SampleCount timestamp, co { } - Move::~Move() { } - void Move::pre_process() { @@ -94,7 +91,6 @@ Move::pre_process() QueuedEvent::pre_process(); } - void Move::execute(ProcessContext& context) { @@ -108,7 +104,6 @@ Move::execute(ProcessContext& context) } } - void Move::post_process() { @@ -131,6 +126,5 @@ Move::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Move.hpp b/src/engine/events/Move.hpp index 84c180a2..13748144 100644 --- a/src/engine/events/Move.hpp +++ b/src/engine/events/Move.hpp @@ -28,7 +28,6 @@ class PatchImpl; namespace Events { - /** \page methods * <h2>MOVE</h2> * As per WebDAV (RFC4918 S9.9). @@ -72,7 +71,6 @@ private: EngineStore::iterator _store_iterator; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/Ping.hpp b/src/engine/events/Ping.hpp index e5edc662..271f97f4 100644 --- a/src/engine/events/Ping.hpp +++ b/src/engine/events/Ping.hpp @@ -28,7 +28,6 @@ class PortImpl; namespace Events { - /** A ping that travels through the pre-processed event queue before responding * (useful for the order guarantee). * @@ -44,7 +43,6 @@ public: void post_process() { _request->respond_ok(); } }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/RegisterClient.cpp b/src/engine/events/RegisterClient.cpp index f3e9ba8a..9eb67806 100644 --- a/src/engine/events/RegisterClient.cpp +++ b/src/engine/events/RegisterClient.cpp @@ -25,7 +25,6 @@ using namespace Raul; namespace Ingen { namespace Events { - RegisterClient::RegisterClient(Engine& engine, SharedPtr<Request> request, SampleCount timestamp, @@ -37,7 +36,6 @@ RegisterClient::RegisterClient(Engine& engine, { } - void RegisterClient::pre_process() { @@ -46,14 +44,12 @@ RegisterClient::pre_process() QueuedEvent::pre_process(); } - void RegisterClient::post_process() { _request->respond_ok(); } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/RegisterClient.hpp b/src/engine/events/RegisterClient.hpp index 2703484c..063f0b31 100644 --- a/src/engine/events/RegisterClient.hpp +++ b/src/engine/events/RegisterClient.hpp @@ -25,7 +25,6 @@ namespace Ingen { namespace Events { - /** Registers a new client with the OSC system, so it can receive updates. * * \ingroup engine @@ -47,7 +46,6 @@ private: Shared::ClientInterface* _client; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/RequestMetadata.cpp b/src/engine/events/RequestMetadata.cpp index b8adc34e..ad116474 100644 --- a/src/engine/events/RequestMetadata.cpp +++ b/src/engine/events/RequestMetadata.cpp @@ -39,7 +39,6 @@ namespace Events { using namespace Shared; - RequestMetadata::RequestMetadata(Engine& engine, SharedPtr<Request> request, SampleCount timestamp, @@ -55,7 +54,6 @@ RequestMetadata::RequestMetadata(Engine& engine, { } - void RequestMetadata::pre_process() { @@ -85,7 +83,6 @@ RequestMetadata::pre_process() QueuedEvent::pre_process(); } - void RequestMetadata::execute(ProcessContext& context) { @@ -108,7 +105,6 @@ RequestMetadata::execute(ProcessContext& context) } } - void RequestMetadata::post_process() { @@ -134,7 +130,6 @@ RequestMetadata::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/RequestMetadata.hpp b/src/engine/events/RequestMetadata.hpp index 96afe6b2..891282f3 100644 --- a/src/engine/events/RequestMetadata.hpp +++ b/src/engine/events/RequestMetadata.hpp @@ -29,7 +29,6 @@ class GraphObjectImpl; namespace Events { - /** \page methods * <h2>GET</h2> * As per HTTP (RFC2616 S9.3). @@ -69,7 +68,6 @@ private: Shared::Resource::Graph _context; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SendBinding.cpp b/src/engine/events/SendBinding.cpp index 0a28b8b0..64785829 100644 --- a/src/engine/events/SendBinding.cpp +++ b/src/engine/events/SendBinding.cpp @@ -27,7 +27,6 @@ using namespace std; namespace Ingen { namespace Events { - void SendBinding::post_process() { @@ -49,7 +48,6 @@ SendBinding::post_process() _engine.broadcaster()->set_property(_port->path(), uris.ingen_controlBinding, dict); } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SendBinding.hpp b/src/engine/events/SendBinding.hpp index c9def7ff..7f2ff91a 100644 --- a/src/engine/events/SendBinding.hpp +++ b/src/engine/events/SendBinding.hpp @@ -28,7 +28,6 @@ class PortImpl; namespace Events { - /** A special event used internally to send control bindings from the audio thread. * * See SendPortValue documentation for details. @@ -79,7 +78,6 @@ private: int16_t _num; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SendPortActivity.cpp b/src/engine/events/SendPortActivity.cpp index 09978af1..fedebdda 100644 --- a/src/engine/events/SendPortActivity.cpp +++ b/src/engine/events/SendPortActivity.cpp @@ -23,14 +23,12 @@ namespace Ingen { namespace Events { - void SendPortActivity::post_process() { _engine.broadcaster()->activity(_port->path()); } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SendPortActivity.hpp b/src/engine/events/SendPortActivity.hpp index 9aa92d94..7b47e761 100644 --- a/src/engine/events/SendPortActivity.hpp +++ b/src/engine/events/SendPortActivity.hpp @@ -27,7 +27,6 @@ class PortImpl; namespace Events { - /** A special event used internally to send port activity notification (e.g. * MIDI event activity) from the audio thread. * @@ -62,7 +61,6 @@ private: PortImpl* _port; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SendPortValue.cpp b/src/engine/events/SendPortValue.cpp index a2d82ac8..62ed76ec 100644 --- a/src/engine/events/SendPortValue.cpp +++ b/src/engine/events/SendPortValue.cpp @@ -27,7 +27,6 @@ using namespace std; namespace Ingen { namespace Events { - void SendPortValue::post_process() { @@ -36,7 +35,6 @@ SendPortValue::post_process() _engine.world()->uris()->ingen_value, _value); } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SendPortValue.hpp b/src/engine/events/SendPortValue.hpp index 847ef741..c7b36c6c 100644 --- a/src/engine/events/SendPortValue.hpp +++ b/src/engine/events/SendPortValue.hpp @@ -28,7 +28,6 @@ class PortImpl; namespace Events { - /** A special event used internally to send port values from the audio thread. * * This is created in the audio thread (using in-place new on a preallocated @@ -75,7 +74,6 @@ private: Raul::Atom _value; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SetMetadata.cpp b/src/engine/events/SetMetadata.cpp index afd4a226..0d5e3f88 100644 --- a/src/engine/events/SetMetadata.cpp +++ b/src/engine/events/SetMetadata.cpp @@ -48,7 +48,6 @@ namespace Events { using namespace Shared; typedef Shared::Resource::Properties Properties; - SetMetadata::SetMetadata( Engine& engine, SharedPtr<Request> request, @@ -88,7 +87,6 @@ SetMetadata::SetMetadata( */ } - SetMetadata::~SetMetadata() { for (SetEvents::iterator i = _set_events.begin(); i != _set_events.end(); ++i) @@ -97,7 +95,6 @@ SetMetadata::~SetMetadata() delete _create_event; } - void SetMetadata::pre_process() { @@ -175,7 +172,6 @@ SetMetadata::pre_process() _object->remove_property(key, value); } - for (Properties::iterator p = _properties.begin(); p != _properties.end(); ++p) { const Raul::URI& key = p->first; const Raul::Atom& value = p->second; @@ -263,7 +259,6 @@ SetMetadata::pre_process() QueuedEvent::pre_process(); } - void SetMetadata::execute(ProcessContext& context) { @@ -343,7 +338,6 @@ SetMetadata::execute(ProcessContext& context) _request->unblock(); } - void SetMetadata::post_process() { @@ -380,7 +374,6 @@ SetMetadata::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SetMetadata.hpp b/src/engine/events/SetMetadata.hpp index 021cb3f4..f1ef9423 100644 --- a/src/engine/events/SetMetadata.hpp +++ b/src/engine/events/SetMetadata.hpp @@ -31,7 +31,6 @@ class CompiledPatch; namespace Events { - /** \page methods * <h2>POST</h2> * As per HTTP (RFC2616 S9.5). @@ -117,7 +116,6 @@ private: SharedPtr<ControlBindings::Bindings> _old_bindings; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SetPortValue.cpp b/src/engine/events/SetPortValue.cpp index 56285a60..5fdc5da9 100644 --- a/src/engine/events/SetPortValue.cpp +++ b/src/engine/events/SetPortValue.cpp @@ -46,7 +46,6 @@ namespace Events { using namespace Shared; - SetPortValue::SetPortValue(Engine& engine, SharedPtr<Request> request, bool queued, @@ -61,7 +60,6 @@ SetPortValue::SetPortValue(Engine& engine, { } - /** Internal */ SetPortValue::SetPortValue(Engine& engine, SharedPtr<Request> request, @@ -80,7 +78,6 @@ SetPortValue::~SetPortValue() { } - void SetPortValue::pre_process() { @@ -108,7 +105,6 @@ SetPortValue::pre_process() QueuedEvent::pre_process(); } - void SetPortValue::execute(ProcessContext& context) { @@ -122,7 +118,6 @@ SetPortValue::execute(ProcessContext& context) _engine.control_bindings()->port_value_changed(context, _port); } - void SetPortValue::apply(Context& context) { @@ -192,7 +187,6 @@ SetPortValue::apply(Context& context) } } - void SetPortValue::post_process() { @@ -224,7 +218,6 @@ SetPortValue::post_process() } } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/SetPortValue.hpp b/src/engine/events/SetPortValue.hpp index c0cbb635..7b483709 100644 --- a/src/engine/events/SetPortValue.hpp +++ b/src/engine/events/SetPortValue.hpp @@ -28,7 +28,6 @@ class PortImpl; namespace Events { - /** An event to change the value of a port. * * This event can either be queued or immediate, depending on the queued @@ -76,7 +75,6 @@ private: PortImpl* _port; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/UnregisterClient.cpp b/src/engine/events/UnregisterClient.cpp index 6f0b6357..efa20a04 100644 --- a/src/engine/events/UnregisterClient.cpp +++ b/src/engine/events/UnregisterClient.cpp @@ -26,14 +26,12 @@ using namespace Raul; namespace Ingen { namespace Events { - UnregisterClient::UnregisterClient(Engine& engine, SharedPtr<Request> request, SampleCount timestamp, const URI& uri) : QueuedEvent(engine, request, timestamp) , _uri(uri) { } - void UnregisterClient::post_process() { @@ -43,7 +41,6 @@ UnregisterClient::post_process() _request->respond_error("Unable to unregister client"); } - } // namespace Ingen } // namespace Events diff --git a/src/engine/events/UnregisterClient.hpp b/src/engine/events/UnregisterClient.hpp index e3919b36..e0bebf65 100644 --- a/src/engine/events/UnregisterClient.hpp +++ b/src/engine/events/UnregisterClient.hpp @@ -24,7 +24,6 @@ namespace Ingen { namespace Events { - /** Unregisters an OSC client so it no longer receives notifications. * * \ingroup engine @@ -43,7 +42,6 @@ private: Raul::URI _uri; }; - } // namespace Ingen } // namespace Events diff --git a/src/engine/ingen_lv2.cpp b/src/engine/ingen_lv2.cpp index 1e0532b7..943b6fe1 100644 --- a/src/engine/ingen_lv2.cpp +++ b/src/engine/ingen_lv2.cpp @@ -393,7 +393,7 @@ Lib::Lib() } assert(world->parser()); - + typedef Serialisation::Parser::PatchRecords Records; Records records(world->parser()->find_patches( diff --git a/src/engine/internals/Controller.cpp b/src/engine/internals/Controller.cpp index e9d282e2..13c01460 100644 --- a/src/engine/internals/Controller.cpp +++ b/src/engine/internals/Controller.cpp @@ -81,7 +81,6 @@ ControllerNode::ControllerNode(InternalPlugin* plugin, _ports->at(5) = _audio_port; } - void ControllerNode::process(ProcessContext& context) { @@ -108,7 +107,6 @@ ControllerNode::process(ProcessContext& context) NodeImpl::post_process(context); } - void ControllerNode::control(ProcessContext& context, uint8_t control_num, uint8_t val, FrameTime time) { @@ -144,7 +142,6 @@ ControllerNode::control(ProcessContext& context, uint8_t control_num, uint8_t va ((AudioBuffer*)_audio_port->buffer(0).get())->set_value(scaled_value, context.start(), time); } - } // namespace Internals } // namespace Ingen diff --git a/src/engine/internals/Controller.hpp b/src/engine/internals/Controller.hpp index 16e4df30..d89e3b8b 100644 --- a/src/engine/internals/Controller.hpp +++ b/src/engine/internals/Controller.hpp @@ -29,7 +29,6 @@ class InternalPlugin; namespace Internals { - /** MIDI control input node. * * Creating one of these nodes is how a user makes "MIDI Bindings". Note that @@ -67,7 +66,6 @@ private: OutputPort* _audio_port; }; - } // namespace Ingen } // namespace Internals diff --git a/src/engine/internals/Delay.cpp b/src/engine/internals/Delay.cpp index 87aa952e..3b1960fd 100644 --- a/src/engine/internals/Delay.cpp +++ b/src/engine/internals/Delay.cpp @@ -92,14 +92,12 @@ DelayNode::DelayNode( } - DelayNode::~DelayNode() { //_buffer.reset(); free(_buffer); } - void DelayNode::activate(BufferFactory& bufs) { @@ -118,7 +116,6 @@ DelayNode::activate(BufferFactory& bufs) _write_phase = 0; } - static inline float f_clamp(float x, float a, float b) { const float x1 = fabs(x - a); @@ -131,7 +128,6 @@ static inline float f_clamp(float x, float a, float b) return x; } - static inline float cube_interp(const float fr, const float inm1, const float in, const float inp1, const float inp2) { @@ -140,7 +136,6 @@ static inline float cube_interp(const float fr, const float inm1, const float fr * (3.0f * (in - inp1) - inm1 + inp2))); } - void DelayNode::process(ProcessContext& context) { @@ -208,7 +203,6 @@ DelayNode::process(ProcessContext& context) NodeImpl::post_process(context); } - } // namespace Internals } // namespace Ingen diff --git a/src/engine/internals/Delay.hpp b/src/engine/internals/Delay.hpp index c3657402..f43a32ae 100644 --- a/src/engine/internals/Delay.hpp +++ b/src/engine/internals/Delay.hpp @@ -32,7 +32,6 @@ class BufferFactory; namespace Internals { - class DelayNode : public NodeImpl { public: @@ -71,7 +70,6 @@ private: float _delay_samples; }; - } // namespace Ingen } // namespace Internals diff --git a/src/engine/internals/Note.cpp b/src/engine/internals/Note.cpp index a92e3069..ab2c6508 100644 --- a/src/engine/internals/Note.cpp +++ b/src/engine/internals/Note.cpp @@ -87,13 +87,11 @@ NoteNode::NoteNode( _ports->at(4) = _trig_port; } - NoteNode::~NoteNode() { delete _voices; } - bool NoteNode::prepare_poly(BufferFactory& bufs, uint32_t poly) { @@ -110,7 +108,6 @@ NoteNode::prepare_poly(BufferFactory& bufs, uint32_t poly) return true; } - bool NoteNode::apply_poly(Raul::Maid& maid, uint32_t poly) { @@ -128,7 +125,6 @@ NoteNode::apply_poly(Raul::Maid& maid, uint32_t poly) return true; } - void NoteNode::process(ProcessContext& context) { @@ -204,7 +200,6 @@ NoteNode::process(ProcessContext& context) NodeImpl::post_process(context); } - void NoteNode::note_on(ProcessContext& context, uint8_t note_num, uint8_t velocity, FrameTime time) { @@ -294,7 +289,6 @@ NoteNode::note_on(ProcessContext& context, uint8_t note_num, uint8_t velocity, F assert((*_voices)[key->voice].note == note_num); } - void NoteNode::note_off(ProcessContext& context, uint8_t note_num, FrameTime time) { @@ -333,7 +327,6 @@ NoteNode::note_off(ProcessContext& context, uint8_t note_num, FrameTime time) key->state = Key::OFF; } - void NoteNode::free_voice(ProcessContext& context, uint32_t voice, FrameTime time) { @@ -374,7 +367,6 @@ NoteNode::free_voice(ProcessContext& context, uint32_t voice, FrameTime time) } } - void NoteNode::all_notes_off(ProcessContext& context, FrameTime time) { @@ -392,7 +384,6 @@ NoteNode::all_notes_off(ProcessContext& context, FrameTime time) } } - float NoteNode::note_to_freq(int num) { @@ -402,14 +393,12 @@ NoteNode::note_to_freq(int num) return 1.0f; // Frequency of zero causes numerical problems... } - void NoteNode::sustain_on(ProcessContext& context, FrameTime time) { _sustain = true; } - void NoteNode::sustain_off(ProcessContext& context, FrameTime time) { @@ -422,7 +411,6 @@ NoteNode::sustain_off(ProcessContext& context, FrameTime time) free_voice(context, i, time); } - } // namespace Internals } // namespace Ingen diff --git a/src/engine/internals/Note.hpp b/src/engine/internals/Note.hpp index 3c9e6f66..d38adfd8 100644 --- a/src/engine/internals/Note.hpp +++ b/src/engine/internals/Note.hpp @@ -30,7 +30,6 @@ class InternalPlugin; namespace Internals { - /** MIDI note input node. * * For pitched instruments like keyboard, etc. @@ -94,7 +93,6 @@ private: OutputPort* _trig_port; }; - } // namespace Ingen } // namespace Internals diff --git a/src/engine/internals/Trigger.cpp b/src/engine/internals/Trigger.cpp index 7461ec3a..2d8e43f9 100644 --- a/src/engine/internals/Trigger.cpp +++ b/src/engine/internals/Trigger.cpp @@ -84,7 +84,6 @@ TriggerNode::TriggerNode( _ports->at(4) = _vel_port; } - void TriggerNode::process(ProcessContext& context) { @@ -129,7 +128,6 @@ TriggerNode::process(ProcessContext& context) NodeImpl::post_process(context); } - void TriggerNode::note_on(ProcessContext& context, uint8_t note_num, uint8_t velocity, FrameTime time) { @@ -157,7 +155,6 @@ TriggerNode::note_on(ProcessContext& context, uint8_t note_num, uint8_t velocity } } - void TriggerNode::note_off(ProcessContext& context, uint8_t note_num, FrameTime time) { @@ -167,6 +164,5 @@ TriggerNode::note_off(ProcessContext& context, uint8_t note_num, FrameTime time) ((AudioBuffer*)_gate_port->buffer(0).get())->set_value(0.0f, context.start(), time); } - } // namespace Internals } // namespace Ingen diff --git a/src/engine/internals/Trigger.hpp b/src/engine/internals/Trigger.hpp index 5d1eab9f..fc5c0be2 100644 --- a/src/engine/internals/Trigger.hpp +++ b/src/engine/internals/Trigger.hpp @@ -29,7 +29,6 @@ class InternalPlugin; namespace Internals { - /** MIDI trigger input node. * * Just has a gate, for drums etc. A control port is used to select @@ -70,7 +69,6 @@ private: OutputPort* _vel_port; }; - } // namespace Ingen } // namespace Internals diff --git a/src/engine/tuning.hpp b/src/engine/tuning.hpp index 1cf6ed1c..de08f5b4 100644 --- a/src/engine/tuning.hpp +++ b/src/engine/tuning.hpp @@ -33,7 +33,6 @@ static const size_t message_context_queue_size = 1024; static const size_t event_bytes_per_frame = 4; - } // namespace Ingen #endif // INGEN_ENGINE_TUNING_HPP |