diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-09-05 17:55:35 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-09-05 17:55:35 +0100 |
| commit | 741fb4b9e135cfb161a749db88713229038577bb (patch) | |
| tree | 08bc9925659cbcac45162bacf31dc6336d4f60b4 /rotord/src/rendercontext.cpp | |
| parent | a2e1bf3495b7bfefdaedb8fc737e969ab06df079 (diff) | |
making act segmenter
Diffstat (limited to 'rotord/src/rendercontext.cpp')
| -rw-r--r-- | rotord/src/rendercontext.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rotord/src/rendercontext.cpp b/rotord/src/rendercontext.cpp index d160527..47113c1 100644 --- a/rotord/src/rendercontext.cpp +++ b/rotord/src/rendercontext.cpp @@ -17,9 +17,10 @@ void Render_context::runTask() { state=ANALYSING_AUDIO; vector<Audio_processor*> processors; processors.push_back(audio_thumb); - vector<Node*> analysers=graph.find_nodes("audio_analysis"); - for (auto a: analysers) { - processors.push_back(dynamic_cast<Audio_processor*>(a)); + for (auto a: graph.nodes) { + if (dynamic_cast<Audio_processor*>(a.second)){ + processors.push_back(dynamic_cast<Audio_processor*>(a.second)); + } } if (load_audio(graph.audio_filename,processors)) { graph.audio_loaded=true; |
