changeset 5:45bcfa3d5da7

* win32 fixes
author Chris Cannam
date Fri, 11 Jun 2010 16:01:50 +0100
parents d90abfa9585a
children 24dae253d31f
files Devuvuzelator.vcproj devuvuzelator-vst.cpp median.h
diffstat 3 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Devuvuzelator.vcproj	Fri Jun 11 15:38:44 2010 +0100
+++ b/Devuvuzelator.vcproj	Fri Jun 11 16:01:50 2010 +0100
@@ -191,6 +191,10 @@
 				>
 			</File>
 			<File
+				RelativePath=".\median.h"
+				>
+			</File>
+			<File
 				RelativePath=".\vstsdk2.4\pluginterfaces\vst2.x\vstfxstore.h"
 				>
 			</File>
--- a/devuvuzelator-vst.cpp	Fri Jun 11 15:38:44 2010 +0100
+++ b/devuvuzelator-vst.cpp	Fri Jun 11 16:01:50 2010 +0100
@@ -163,7 +163,8 @@
     m_input(0),
     m_output(0),
     m_fftsize(FFTSIZE),
-    m_increment(m_fftsize/4),
+	m_winsize(WINSIZE),
+    m_increment(m_winsize/2),
     m_fill(0),
     m_read(0)
 {
--- a/median.h	Fri Jun 11 15:38:44 2010 +0100
+++ b/median.h	Fri Jun 11 16:01:50 2010 +0100
@@ -31,6 +31,7 @@
     }
 
     void push(T value) {
+			if (value != value) return; // nan
 	drop(m_frame[0]);
 	const int sz1 = m_size-1;
 	for (int i = 0; i < sz1; ++i) m_frame[i] = m_frame[i+1];