From 449a223a426099be9b697177c998fa62afbb7c59 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 10 Sep 2013 15:47:25 +0100 Subject: best effort at memory fixes --- rotord/src/nodes_audio_analysis.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rotord/src/nodes_audio_analysis.h') diff --git a/rotord/src/nodes_audio_analysis.h b/rotord/src/nodes_audio_analysis.h index ca7c204..bf55beb 100644 --- a/rotord/src/nodes_audio_analysis.h +++ b/rotord/src/nodes_audio_analysis.h @@ -15,6 +15,13 @@ namespace Rotor { height=128; width=512; //fit vectordata =new float[width]; + + //trying to reduce valgrind errors + column=0; //point thumbnail bitmap + out_sample=0; //sample in whole track + sample=0; + samples=0; + accum=0.0; }; ~Audio_thumbnailer(){ delete[] vectordata; @@ -28,7 +35,7 @@ namespace Rotor { int height,width,samples_per_column; int column,out_sample,sample,samples; int offset; - double scale,accum; + float scale,accum; }; class Vamp_node: public Audio_processor { //base class for vamp plugin hosts -- cgit v1.2.3