[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#450609: ams: spectrum displays bogus values



Package: ams
Version: 1.8.7-5
Severity: normal
Tags: patch


The spectrum module displays bogus values. To reproduce, just
connect any sound stream to the module and watch the displayed
spectrum.

This is due to a type mismatch. While it uses the single-precision
version of the library (Makefile says: "ams: [...] -lsrfftw
-lsfftw"), it includes headers for the double-precision version.

This patch fixes the problem (tested).

--- ams-1.8.7.orig/spectrumscreen.cpp	2007-05-31 17:22:38.000000000 +0200
+++ ams-1.8.7/spectrumscreen.cpp	2004-07-21 10:51:36.000000000 +0200
@@ -9,7 +9,7 @@
 #include <qevent.h>
 #include "synthdata.h"
 #include "spectrumscreen.h"
-#include <rfftw.h>
+#include <srfftw.h>
 #include <math.h>
 
 SpectrumScreen::SpectrumScreen(QWidget* parent, const char *name, SynthData *p_synthdata) : QWidget (parent, name)
--- ams-1.8.7.orig/spectrumscreen.h	2007-05-31 17:22:10.000000000 +0200
+++ ams-1.8.7/spectrumscreen.h	2004-07-21 10:51:06.000000000 +0200
@@ -12,7 +12,7 @@
 #include <qpixmap.h>
 #include <qevent.h>
 #include "synthdata.h"
-#include <rfftw.h>
+#include <srfftw.h>

 #define MINIMUM_WIDTH                 100
 #define MINIMUM_HEIGHT                 50




Reply to: