summaryrefslogtreecommitdiff
path: root/rotord/rotord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/rotord.cpp')
-rw-r--r--rotord/rotord.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/rotord/rotord.cpp b/rotord/rotord.cpp
index 965d290..315e856 100644
--- a/rotord/rotord.cpp
+++ b/rotord/rotord.cpp
@@ -43,10 +43,20 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS
app.logger().information("Request from "+ request.clientAddress().toString()+" "+ostr.str()+" segments: "+out);
- if (segments.size() == 0)
+ if (segments.size() == 0) {
return new RotorRequestHandler(_format);
- else
- return 0;
+ }
+ else if (segments[0]=="vamp") {
+ // vamp/plugin/filter/filename
+ // how do deal with error condition?
+ //string audioData=runPlugin(string myname, string soname, string id,
+ // string output, int outputNo, string wavname,
+ // string outfilename, bool useFrames);
+ return 0;
+ }
+ else {
+ return 0;
+ }
}