summaryrefslogtreecommitdiff
path: root/rotord/rotord.cpp
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-02-25 19:46:09 +0000
committerComment <tim@gray.(none)>2013-02-25 19:46:09 +0000
commit963963271f0bec94a4d3d8b6b0fe60621d83318d (patch)
tree1c517eb052efb75ecb4ba2b2ed06eb21a7bb33e9 /rotord/rotord.cpp
parent7b82d6a61b468ec21e6e433a93bcbc32ae72df1a (diff)
starting audio parser
Diffstat (limited to 'rotord/rotord.cpp')
-rwxr-xr-xrotord/rotord.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/rotord/rotord.cpp b/rotord/rotord.cpp
index f9e1d21..e04ba30 100755
--- a/rotord/rotord.cpp
+++ b/rotord/rotord.cpp
@@ -171,9 +171,10 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS
}
else {
bool found=false;
- for (auto& task: manager.taskList())
+ for (auto& task: manager.taskList()) //c++11
{
if(task->name()==command[0]) {
+ //valid session command
found=true;
if (command.size()==1) {
//just invoking sID
@@ -186,6 +187,17 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS
content="<status>Rotor: render context invoked with no command</status>\n";
}
}
+ else {
+ if (command[0]=="audio") {
+ if (request.getMethod()=="PUT") {
+ //get audio file location and initiate analysis
+ stringstream str;
+ str << request.stream();
+ content << str;
+ }
+ }
+
+ }
}
}
if (!found) {