Mercurial > audlegacy
comparison audacious/visualization.c @ 2179:8bdcac47760b trunk
[svn] Keep the voiceprint inside the range for the theme.
author | marvin |
---|---|
date | Tue, 19 Dec 2006 15:13:17 -0800 |
parents | 7267fc6b2c67 |
children | 65ca93cd72bf |
comparison
equal
deleted
inserted
replaced
2178:64ff5aaf0b18 | 2179:8bdcac47760b |
---|---|
415 if (!mono_freq_calced) | 415 if (!mono_freq_calced) |
416 calc_mono_freq(mono_freq, pcm_data, nch); | 416 calc_mono_freq(mono_freq, pcm_data, nch); |
417 | 417 |
418 /* Subsampling; 8 frequencies per sample*/ | 418 /* Subsampling; 8 frequencies per sample*/ |
419 for(i = 0; i < 256 ; i++) | 419 for(i = 0; i < 256 ; i++) |
420 intern_vis_data[i] = (mono_freq[0][i] >> 9); | 420 intern_vis_data[i] = (mono_freq[0][i] >> 8); |
421 | |
422 /* Nonlinear transfer function makes the tones stand out*/ | 421 /* Nonlinear transfer function makes the tones stand out*/ |
423 for(i = 0; i < 16 ; i++) | 422 //for(i = 0; i < 16 ; i++) |
424 intern_vis_data[i] = pow(2, intern_vis_data[i]); | 423 // intern_vis_data[i] = pow(1.2, intern_vis_data[i]); |
425 } | 424 } |
426 } | 425 } |
427 else { /* (cfg.vis_type == VIS_SCOPE) */ | 426 else { /* (cfg.vis_type == VIS_SCOPE) */ |
428 | 427 |
429 /* Oscilloscope */ | 428 /* Oscilloscope */ |