diff plugin/RealTimePluginInstance.h @ 66:7afcfe666910

* Modify to use Vamp SDK for proper feature extraction plugins. Requires that the vamp-plugin-sdk directory tree be present below plugin/ (it's separate in Subversion).
author Chris Cannam
date Fri, 31 Mar 2006 15:56:35 +0000
parents 3086ff194ea0
children 163f3428bbe0
line wrap: on
line diff
--- a/plugin/RealTimePluginInstance.h	Thu Mar 30 15:00:22 2006 +0000
+++ b/plugin/RealTimePluginInstance.h	Fri Mar 31 15:56:35 2006 +0000
@@ -21,15 +21,14 @@
 #ifndef _REALTIME_PLUGIN_INSTANCE_H_
 #define _REALTIME_PLUGIN_INSTANCE_H_
 
-#include "PluginInstance.h"
+#include "vamp-sdk/PluginBase.h"
+#include "vamp-sdk/RealTime.h"
 
 #include <QString>
 #include <QStringList>
 #include <vector>
 #include <string>
 
-#include "base/RealTime.h"
-
 class RealTimePluginFactory;
 	
 /**
@@ -72,7 +71,7 @@
     static const int SampleRate = 8;
 }
 
-class RealTimePluginInstance : public PluginInstance
+class RealTimePluginInstance : public Vamp::PluginBase
 {
 public:
     typedef float sample_t;
@@ -88,7 +87,7 @@
      * may be of interest to synths etc that may have queued events
      * waiting.  Other plugins can ignore it.
      */
-    virtual void run(const RealTime &blockStartTime) = 0;
+    virtual void run(const Vamp::RealTime &blockStartTime) = 0;
     
     virtual size_t getBufferSize() const = 0;
 
@@ -115,7 +114,7 @@
 
     virtual std::string configure(std::string /* key */, std::string /* value */) { return std::string(); }
 
-    virtual void sendEvent(const RealTime & /* eventTime */,
+    virtual void sendEvent(const Vamp::RealTime & /* eventTime */,
 			   const void * /* event */) { }
     virtual void clearEvents() { }