From b617228d7bf7c028b7e27da6f47053bc0558bc95 Mon Sep 17 00:00:00 2001 From: Comment Date: Thu, 13 Jun 2013 08:57:57 +0100 Subject: first performance --- src/viewport.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/viewport.h') diff --git a/src/viewport.h b/src/viewport.h index 072ec7a..9587f6d 100755 --- a/src/viewport.h +++ b/src/viewport.h @@ -4,8 +4,8 @@ #include "ofMain.h" #include "ofxXmlSettings.h" -static int bufferSize = 1024; -static int oversample = 4; +static int bufferSize = 2048; +static int oversample = 8; static int windowsize = 32; static int previewscale = 5; @@ -80,6 +80,7 @@ class vpcontrol { waveheight=1.0f; fade=0; drawseconds=-1.0f; + reverse=drawkeys=false; left.assign(bufferSize, 0.0); right.assign(bufferSize, 0.0); @@ -124,6 +125,8 @@ class vpcontrol { float scaledVol; float bx,by,drawseconds; + + bool reverse,drawkeys; }; class viewport -- cgit v1.2.3