summaryrefslogtreecommitdiff
path: root/rotord
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-09-17 14:04:05 +0100
committerTim Redfern <tim@eclectronics.org>2013-09-17 14:04:05 +0100
commit1df3fe73cfb5866c9843818b487373ee8004fd65 (patch)
tree6c12f11f4b1d30e40af223906aa9b1dfa3d99781 /rotord
parenteb88e47020201deef27adb81da22b91579c9405c (diff)
analyse audio after non blocking graph load
Diffstat (limited to 'rotord')
-rw-r--r--rotord/src/rendercontext.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/rotord/src/rendercontext.cpp b/rotord/src/rendercontext.cpp
index d516cbd..8c9c6e4 100644
--- a/rotord/src/rendercontext.cpp
+++ b/rotord/src/rendercontext.cpp
@@ -60,6 +60,12 @@ void Render_context::runTask() {
cerr<<"Rotor: failed to load graph from body request"<<endl;
}
}
+ if (graph.loaded){
+ if (graph.audio_loaded) {
+ add_queue(Session_task(cmd.uid,ANALYSE_AUDIO));
+ cerr<<"Rotor: starting audio analysis for graph"<<endl;
+ }
+ }
state=IDLE;
}
sleep(100);