Måns Rullgård <m...@mansr.com> writes:

>> +      if (stat->fft_average) {
>> +          for (i = 0; i < samples / 2; i++) /* FIXME: should be <= samples 
>> / 2 */
>> +              fprintf(stderr, " %f  %f\n", ffa * i, re_average[i] / len);
>> +      }
>
> I don't understand the idea here.  Unless I'm mistaken, this prints the
> power spectrum averaged over however many FFT blocks happen to fit in
> the input chunk, which could be none.

Oh, and the "average" it calculates is bonkers too.

-- 
Måns Rullgård


_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

Reply via email to