summaryrefslogtreecommitdiff
path: root/rotord/rotord.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-02-15 17:02:12 +0000
committerTim Redfern <tim@herge.(none)>2013-02-15 17:02:12 +0000
commit09c827e0b4aa62401ac1ed84107bd5570b2580be (patch)
tree15ab8ba28f6f569aa0f2c1b897c8a5340c8c66aa /rotord/rotord.cpp
parent9f746d958099458dc11afdf410fb0b24ee510cac (diff)
adding vamp
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;
+ }
}