On 5/18/24 17:19, Jan Stary wrote:

There seems to be a bug in the spectrogram effect,
also present in earlier releases.

  $  sox -c 1 -b 16 -r 1000 -n file.wav synth 1 sin 440 gain -3
  $  sox file.wav -n spectrogram
  $  sox file.wav -n spectrogram -x 1000
  $  sox file.wav -n spectrogram -x 1001
  Segmentation fault (core dumped)
  $  sox file.wav -n spectrogram -X 1000
  $  sox file.wav -n spectrogram -X 1001
  Segmentation fault (core dumped)
The bug is sill there somewhere: instead of segfaulting,
the following now makes SoX eat up the CPU, without
producing a spectrogram:

sox -c 1 -b 16 -r 1000 -n file.wav synth 1 sin 440 gain -3
sox file.wav -n spectrogram
sox file.wav -n spectrogram -x 1000
sox file.wav -n spectrogram -x 1001


I'll have a look at this in the next few days, caring about spectrograms as I do.

If I remember correctly it doesn't even use FFTW, making it hundreds of times slower.


     M

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

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

Reply via email to