changeset 2166:a8fe58a69f8f trunk

[svn] - voiceprint fixes from Troels Bang Jensen.
author nenolod
date Mon, 18 Dec 2006 10:57:11 -0800
parents 41e60e045e9e
children 92f063d73948
files ChangeLog audacious/visualization.c audacious/widgets/vis.c
diffstat 3 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Dec 18 10:09:07 2006 -0800
+++ b/ChangeLog	Mon Dec 18 10:57:11 2006 -0800
@@ -1,3 +1,13 @@
+2006-12-18 18:09:07 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [3335]
+  - gtk_timeout_add -> g_timeout_add
+  - gtk_timeout_remove -> g_source_remove
+  
+  trunk/audacious/widgets/playlist_list.c |    4 ++--
+  trunk/audacious/widgets/textbox.c       |    8 ++++----
+  2 files changed, 6 insertions(+), 6 deletions(-)
+
+
 2006-12-18 18:04:29 +0000  William Pitcock <nenolod@nenolod.net>
   revision [3333]
   - fix the positioning of an assertion to a place where it would actually 
--- a/audacious/visualization.c	Mon Dec 18 10:09:07 2006 -0800
+++ b/audacious/visualization.c	Mon Dec 18 10:57:11 2006 -0800
@@ -416,7 +416,7 @@
 	calc_mono_freq(mono_freq, pcm_data, nch);
       for(i = 0; i < 16 ; i++)
 	{
-	  intern_vis_data[i] = mono_freq[0][i << 4];
+	  intern_vis_data[i] = mono_freq[0][i << 2] >> 2;
 	}
     }
     else { /* (cfg.vis_type == VIS_SCOPE) */
--- a/audacious/widgets/vis.c	Mon Dec 18 10:09:07 2006 -0800
+++ b/audacious/widgets/vis.c	Mon Dec 18 10:57:11 2006 -0800
@@ -101,7 +101,7 @@
     else if (cfg.vis_type == VIS_VOICEPRINT && data){
       for(i = 0; i < 16; i++)
 	{
-	  vis->vs_data[i] = data[16 - i] >> 5 > 16 ? 16 : data[16-i] >> 5;
+	  vis->vs_data[i] = data[15 - i] >> 5 > 16 ? 16 : data[15-i] >> 5;
        
 	}
     }