Mercurial > audlegacy
changeset 2172:9a02f5ea1a9c trunk
[svn] - Added 'bars' mode for analyzer in windowshade mode
author | marvin |
---|---|
date | Mon, 18 Dec 2006 17:26:47 -0800 |
parents | 7267fc6b2c67 |
children | 9d2f27822d17 |
files | ChangeLog audacious/widgets/svis.c |
diffstat | 2 files changed, 28 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 <marvin@fnuck.dk> + 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 <james@develia.org> revision [3345] fixed bug #699 about playlist->queue with patch provided by bug reporter
--- 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: