From ed6d4984e8a72147f1fd3e1fde3f124e31a4ada2 Mon Sep 17 00:00:00 2001 From: mws Date: Wed, 16 Dec 2009 16:07:49 +0000 Subject: [PATCH] unused stuff commented git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@84 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/driver/audiodec/vis.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/driver/audiodec/vis.cpp b/src/driver/audiodec/vis.cpp index 79c3600e6..27b3ccfad 100644 --- a/src/driver/audiodec/vis.cpp +++ b/src/driver/audiodec/vis.cpp @@ -33,6 +33,7 @@ typedef double gdouble; #define FALL 2 #define FALLOFF 1 +#if 0 static int bar_heights[NUM_BANDS]; static int falloffs[NUM_BANDS]; static gdouble scale = 0; @@ -40,7 +41,7 @@ static gdouble scale = 0; static gint xscale128[] = { 0, 1, 2, 3, 4, 6, 8, 9, 10, 14, 20, 27, 37, 50, 67, 94, 127 }; static gint xscale256[] = { 0, 1, 2, 3, 5, 7, 10, 14, 20, 28, 40, 54, 74, 101, 137, 187, 255 }; static gint xscale512[] = { 0, 2, 4, 6, 10, 14, 20, 28, 40, 56, 80, 108, 148, 202, 274, 374, 510 }; - +#endif //#define DEBUG #if HAVE_DBOX2 #define SAMPLES 256 @@ -52,6 +53,7 @@ static gint xscale512[] = { 0, 2, 4, 6, 10, 14, 20, 28, 40, 56, 80, 108, 148, 20 #define xscale xscale256 #endif +#if 0 static void do_fft(gint16 out_data[], gint16 in_data[]) { gint16 im[SAMPLES]; @@ -61,8 +63,8 @@ static void do_fft(gint16 out_data[], gint16 in_data[]) fix_fft(in_data, im, LOG, 0); fix_loud(out_data, in_data, im, SAMPLES/2, 0); } - -static int threshold = -60; +#endif +//static int threshold = -60; void sanalyzer_render_freq (gint16 in_data[]) { #if 0