summaryrefslogtreecommitdiff
path: root/rotord/rotor.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/rotor.h')
-rwxr-xr-xrotord/rotor.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h
index 4961b98..594465d 100755
--- a/rotord/rotor.h
+++ b/rotord/rotor.h
@@ -135,6 +135,22 @@ namespace Rotor {
work_queue.push_back(item);
mutex.unlock();
}
+ std::string session_command(const std::vector<std::string>& command){
+ string response;
+ mutex.lock();
+ if (command[1]=="audio") {
+ if (command[0]=="PUT") {
+ //get audio file location and initiate analysis
+ if (command.size()>1) {
+ //pass message to task
+ work_queue.push_back(command[2]);
+ response="<status>1</status>\n";
+ }
+ }
+ }
+ mutex.unlock();
+ return response;
+ }
Render_status get_status();
void cancel(); //interrupt locking process
int make_preview(int nodeID, float time); //starts a frame preview - returns status code - how to retrieve?