diff examples/SpectralCentroid.cpp @ 21:16eeab18bf72

* tidy * build to vamp-example-plugins.so
author cannam
date Fri, 14 Apr 2006 09:37:46 +0000
parents 08ee18123f5a
children 3bbe244611bb
line wrap: on
line diff
--- 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