Mercurial > audlegacy
diff audacious/visualization.c @ 2161:c12319817d7e trunk
[svn] - patch to add a scrolling voiceprint to the mini visualizer.
Patch by: Troels Bang Jensen ([Marvin] on #audacious).
author | nenolod |
---|---|
date | Mon, 18 Dec 2006 08:44:33 -0800 |
parents | f18a5b617c34 |
children | a8fe58a69f8f |
line wrap: on
line diff
--- a/audacious/visualization.c Mon Dec 18 07:31:51 2006 -0800 +++ b/audacious/visualization.c Mon Dec 18 08:44:33 2006 -0800 @@ -411,9 +411,17 @@ } } } - else { /* (cfg.vis_type == VIS_SCOPE) */ + else if(cfg.vis_type == VIS_VOICEPRINT){ + if (!mono_freq_calced) + calc_mono_freq(mono_freq, pcm_data, nch); + for(i = 0; i < 16 ; i++) + { + intern_vis_data[i] = mono_freq[0][i << 4]; + } + } + else { /* (cfg.vis_type == VIS_SCOPE) */ - /* Osciloscope */ + /* Oscilloscope */ gint pos, step; if (!mono_pcm_calced)