Menu

#113 spectrogram: add FFTW3 support

None
closed
nobody
None
5
2022-08-18
2015-12-31
Martin Guy
No
Sox specrogram has two different algorithms to do spectrograms:

lsx_safe_rdft() for dft_size of powers of two (-ysize=2^n+1) and
rdft_p(), private to spectrogram.c, which does any size but is from
150 to 250 times slower.

This adds FFTW3 support, which is about the same speed as the old lsx
routine but works at any size:

  • stuff in "configure" to autodetect it and "./configure --without-fftw"
    to forcibly disable it
  • code in src/spectrogram.c to use FFTW if it is enabled or the old
    routines otherwise
  • changes to debian/control to build with FFTW (though the debian package
    build dies for other reasons not concerning this patch).

The output from the old algorithms and FFTW (the PNGs) are identical.

1 Attachments

Discussion

  • Martin Guy

    Martin Guy - 2022-08-16

    Can close this as it is superceded by #116

     
  • Mans Rullgard

    Mans Rullgard - 2022-08-18
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB