diff options
author | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
commit | 39d5400b39c8089287d5d294becae1268d232d31 (patch) | |
tree | 0cf73ef86233121bc7f0408ca536aad196d3166c /src/libs/engine/events/DSSIProgramEvent.cpp | |
parent | e135edf1e65ac978f86f4849bd3667299dd69c7e (diff) | |
download | ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.gz ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.bz2 ingen-39d5400b39c8089287d5d294becae1268d232d31.zip |
Mad sed-fu for consistent private member naming.
git-svn-id: http://svn.drobilla.net/lad/ingen@286 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/DSSIProgramEvent.cpp')
-rw-r--r-- | src/libs/engine/events/DSSIProgramEvent.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libs/engine/events/DSSIProgramEvent.cpp b/src/libs/engine/events/DSSIProgramEvent.cpp index 5e992cbf..20debca2 100644 --- a/src/libs/engine/events/DSSIProgramEvent.cpp +++ b/src/libs/engine/events/DSSIProgramEvent.cpp @@ -30,10 +30,10 @@ namespace Ingen { DSSIProgramEvent::DSSIProgramEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& node_path, int bank, int program) : QueuedEvent(engine, responder, timestamp), - m_node_path(node_path), - m_bank(bank), - m_program(program), - m_node(NULL) + _node_path(node_path), + _bank(bank), + _program(program), + _node(NULL) { } @@ -41,10 +41,10 @@ DSSIProgramEvent::DSSIProgramEvent(Engine& engine, SharedPtr<Responder> responde void DSSIProgramEvent::pre_process() { - Node* node = _engine.object_store()->find_node(m_node_path); + Node* node = _engine.object_store()->find_node(_node_path); if (node != NULL && node->plugin()->type() == Plugin::DSSI) - m_node = (DSSINode*)node; + _node = (DSSINode*)node; QueuedEvent::pre_process(); } @@ -55,21 +55,21 @@ DSSIProgramEvent::execute(SampleCount nframes, FrameTime start, FrameTime end) { QueuedEvent::execute(nframes, start, end); - if (m_node != NULL) - m_node->program(m_bank, m_program); + if (_node != NULL) + _node->program(_bank, _program); } void DSSIProgramEvent::post_process() { - if (m_node == NULL) { - cerr << "Unable to find DSSI node " << m_node_path << endl; + if (_node == NULL) { + cerr << "Unable to find DSSI node " << _node_path << endl; } else { // sends program as metadata in the form bank/program char* temp_buf = new char[16]; - snprintf(temp_buf, 16, "%d/%d", m_bank, m_program); - _engine.broadcaster()->send_metadata_update(m_node_path, "dssi-program", temp_buf); + snprintf(temp_buf, 16, "%d/%d", _bank, _program); + _engine.broadcaster()->send_metadata_update(_node_path, "dssi-program", temp_buf); } } |