changeset 21:16eeab18bf72

* tidy * build to vamp-example-plugins.so
author cannam
date Fri, 14 Apr 2006 09:37:46 +0000
parents 68b8b32a2070
children 1eb44d33a371
files Makefile examples/SpectralCentroid.cpp examples/SpectralCentroid.h
diffstat 3 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Apr 12 12:32:18 2006 +0000
+++ b/Makefile	Fri Apr 14 09:37:46 2006 +0000
@@ -68,7 +68,7 @@
 		$(EXAMPLEDIR)/plugins.o
 
 PLUGIN_TARGET	= \
-		$(EXAMPLEDIR)/plugins$(PLUGIN_EXT)
+		$(EXAMPLEDIR)/vamp-example-plugins$(PLUGIN_EXT)
 
 HOST_HEADERS	= \
 		$(HOSTDIR)/system.h
--- a/examples/SpectralCentroid.cpp	Wed Apr 12 12:32:18 2006 +0000
+++ b/examples/SpectralCentroid.cpp	Fri Apr 14 09:37:46 2006 +0000
@@ -47,14 +47,12 @@
 SpectralCentroid::SpectralCentroid(float inputSampleRate) :
     Plugin(inputSampleRate),
     m_stepSize(0),
-    m_blockSize(0),
-    m_workBuffer(0)
+    m_blockSize(0)
 {
 }
 
 SpectralCentroid::~SpectralCentroid()
 {
-    delete m_workBuffer;
 }
 
 string
@@ -96,17 +94,12 @@
     m_stepSize = stepSize;
     m_blockSize = blockSize;
 
-    delete m_workBuffer;
-    m_workBuffer = new double[m_blockSize * 4];
-
     return true;
 }
 
 void
 SpectralCentroid::reset()
 {
-    delete m_workBuffer;
-    m_workBuffer = new double[m_blockSize * 4];
 }
 
 SpectralCentroid::OutputList
--- a/examples/SpectralCentroid.h	Wed Apr 12 12:32:18 2006 +0000
+++ b/examples/SpectralCentroid.h	Fri Apr 14 09:37:46 2006 +0000
@@ -67,7 +67,6 @@
 protected:
     size_t m_stepSize;
     size_t m_blockSize;
-    double *m_workBuffer;
 };