@@ -130,7 +130,8 @@ Options:\n\
130
130
131
131
audio .format = -1 ;
132
132
audio .rate = 0 ;
133
-
133
+ audio .source = "hw:1,1" ;
134
+
134
135
setlocale (LC_ALL , "" );
135
136
136
137
@@ -154,11 +155,11 @@ Options:\n\
154
155
inputMethod = optarg ;
155
156
if (strcmp (inputMethod , "alsa" ) == 0 ) {
156
157
im = 1 ;
157
- audio .source = "/tmp/mpd.fifo " ;
158
+ audio .source = "hw:1,1 " ;
158
159
}
159
160
if (strcmp (inputMethod , "fifo" ) == 0 ) {
160
161
im = 2 ;
161
- audio .source = "hw:1,1 " ;
162
+ audio .source = "/tmp/mpd.fifo " ;
162
163
}
163
164
if (im == 0 ) {
164
165
fprintf (stderr ,
@@ -339,7 +340,7 @@ Options:\n\
339
340
if (bw < 1 ) bw = 1 ; //bars must have width
340
341
341
342
// process [smoothing]: calculate gravity
342
- g = ((float )height / 200 ) * pow ((60 / (float )framerate ), 2.5 );
343
+ g = ((float )height / 270 ) * pow ((60 / (float )framerate ), 2.5 );
343
344
344
345
//if no bands are selected it tries to padd the default 20 if there is extra room
345
346
if (autoband == 1 ) bands = bands + ((w - (bw * bands + bands - 1 )) /
@@ -382,7 +383,7 @@ Options:\n\
382
383
383
384
// process: weigh signal to frequencies
384
385
for (n = 0 ; n < bands ;
385
- n ++ )k [n ] = pow (fc [n ],0.62 ) * ((float )height /(M * 5000 )) * 8 ;
386
+ n ++ )k [n ] = pow (fc [n ],0.85 ) * ((float )height /(M * 4000 )) ;
386
387
387
388
388
389
@@ -522,7 +523,7 @@ Options:\n\
522
523
523
524
// process [smoothing]: integral
524
525
for (o = 0 ; o < bands ; o ++ ) {
525
- fmem [o ] = fmem [o ] * 0.66 + f [o ];
526
+ fmem [o ] = fmem [o ] * 0.70 + f [o ];
526
527
f [o ] = fmem [o ];
527
528
528
529
if (f [o ] < 1 )f [o ] = 1 ;
0 commit comments