summaryrefslogtreecommitdiff
path: root/rotord/rotor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/rotor.cpp')
-rw-r--r--rotord/rotor.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp
index 02f4675..3e7dc2f 100644
--- a/rotord/rotor.cpp
+++ b/rotord/rotor.cpp
@@ -78,6 +78,7 @@ Command_response Render_context::session_command(const std::vector<std::string>&
//Poco::File f=Poco::File(command[3]);
std::auto_ptr<std::istream> pStr(URIStreamOpener::defaultOpener().open(command[3]));
+ /*
if (f.exists()) {
//pass to worker thread ??if engine is ready?? ??what if engine has finished but results aren't read??
audio_filename=command[3]; //for now, store session variables in memory
@@ -88,6 +89,7 @@ Command_response Render_context::session_command(const std::vector<std::string>&
response.status=HTTPResponse::HTTP_NOT_FOUND;
response.description="<status context='"+command[1]+"'>File "+command[3]+" not found</status>\n";
}
+ */
}
else {
response.status=HTTPResponse::HTTP_BAD_REQUEST;
@@ -374,7 +376,7 @@ bool Render_context::load_graph(string filename){
Node_factory::Node_factory(){
//for now, statically load prototype map in constructor
- add_type("audio_analysis",Audio_analysis());
- add_type("==",Is_new_integer());
- add_type("signal_output",Signal_output());
+ add_type("audio_analysis",new Audio_analysis());
+ add_type("==",new Is_new_integer());
+ add_type("signal_output",new Signal_output());
} \ No newline at end of file