diff VamPipePluginLibrary.cpp @ 83:a6ab5fd80eb7

Rename process -> processRaw
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 14 Sep 2016 14:41:24 +0100
parents 5bd5d48a1c21
children 0e1909abe921
line wrap: on
line diff
--- a/VamPipePluginLibrary.cpp	Fri Sep 09 15:41:35 2016 +0100
+++ b/VamPipePluginLibrary.cpp	Wed Sep 14 14:41:24 2016 +0100
@@ -193,10 +193,10 @@
 }
 
 string
-VamPipePluginLibrary::processImpl(int pluginHandle,
-                                  const float *const *inputBuffers,
-                                  int sec,
-                                  int nsec)
+VamPipePluginLibrary::processRawImpl(int pluginHandle,
+                                     const float *const *inputBuffers,
+                                     int sec,
+                                     int nsec)
 {
     RequestOrResponse response;
     response.direction = RequestOrResponse::Response;
@@ -212,14 +212,14 @@
         
         response.processResponse.features = plugin->process(inputBuffers, timestamp);
         response.success = true;
+
+        m_useBase64 = true;
         
 	return writeResponse(response);
 
     } catch (const std::exception &e) {
 	return VampJson::fromException(e, RRType::Process).dump();
     }
-
-    m_useBase64 = true; //!!! todo: return something raw as well!
 }
 
 string