# HG changeset patch # User marvin # Date 1166491607 28800 # Node ID 9a02f5ea1a9c1f1553541790e402decc87cc5b18 # Parent 7267fc6b2c67a5e6c9d275438c0a16d54afae9f8 [svn] - Added 'bars' mode for analyzer in windowshade mode diff -r 7267fc6b2c67 -r 9a02f5ea1a9c ChangeLog --- a/ChangeLog Mon Dec 18 16:37:47 2006 -0800 +++ b/ChangeLog Mon Dec 18 17:26:47 2006 -0800 @@ -1,3 +1,15 @@ +2006-12-19 00:37:47 +0000 Troels Bang Jensen + revision [3347] + -added analyzer vis to windowshade mode + -changed order of windowshade visualizers to analyzer->Scope->VU + -tweaked voiceprint in doublesize mode + + trunk/audacious/visualization.c | 81 ++++++++++++------------ + trunk/audacious/widgets/svis.c | 130 ++++++++++++++++++++++------------------ + trunk/audacious/widgets/vis.c | 18 +++-- + 3 files changed, 127 insertions(+), 102 deletions(-) + + 2006-12-18 22:47:48 +0000 Giacomo Lozito revision [3345] fixed bug #699 about playlist->queue with patch provided by bug reporter diff -r 7267fc6b2c67 -r 9a02f5ea1a9c audacious/widgets/svis.c --- a/audacious/widgets/svis.c Mon Dec 18 16:37:47 2006 -0800 +++ b/audacious/widgets/svis.c Mon Dec 18 17:26:47 2006 -0800 @@ -118,9 +118,20 @@ cmap = gdk_rgb_cmap_new(colors, 24); if (!cfg.doublesize) { - memset(rgb_data, 0, SVIS_WIDTH * SVIS_HEIGHT); - if (cfg.vis_type == VIS_ANALYZER) { - for(y=0; y < SVIS_HEIGHT; y++){ + memset(rgb_data, 0, SVIS_WIDTH * SVIS_HEIGHT); + if (cfg.vis_type == VIS_ANALYZER) { + for(y=0; y < SVIS_HEIGHT; y++){ + if (cfg.analyzer_type == ANALYZER_BARS){ + for(x=0;x< SVIS_WIDTH; x++){ + if(svis->vs_data[x] > y << 1) + { + rgb_data[x*3+ (SVIS_HEIGHT - y) * SVIS_WIDTH] = 23; + rgb_data[x*3+1 + (SVIS_HEIGHT - y) * SVIS_WIDTH] = 23; + + } + } + } + else{ for(x=0;x< SVIS_WIDTH; x++){ if(svis->vs_data[x] > y << 1) { @@ -128,7 +139,8 @@ } } } - } + } + } else if (cfg.vis_type == VIS_VOICEPRINT){ switch (cfg.vu_mode) { case VU_NORMAL: