summaryrefslogtreecommitdiffstats
path: root/gst/spectrum/demo-audiotest.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-11-11 21:12:10 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-11-11 21:12:10 +0000
commit015dc9060f89f77005e66ef880e44204292461f2 (patch)
treef67158203d38ae2cedd8332f56f3ad5fa611cb62 /gst/spectrum/demo-audiotest.c
parent0ada8ac4157fd5428e75bba57d6df9a43e2fe21e (diff)
downloadgst-plugins-bad-015dc9060f89f77005e66ef880e44204292461f2.tar.gz
gst-plugins-bad-015dc9060f89f77005e66ef880e44204292461f2.tar.bz2
gst-plugins-bad-015dc9060f89f77005e66ef880e44204292461f2.zip
gst/: Change the meaning of the magnitude values given in the
Original commit message from CVS: * gst/equalizer/demo.c: (draw_spectrum): * gst/spectrum/demo-audiotest.c: (draw_spectrum): * gst/spectrum/demo-osssrc.c: (draw_spectrum): * gst/spectrum/gstspectrum.c: (gst_spectrum_class_init): Change the meaning of the magnitude values given in the GstMessages by spectrum to decibel instead of decibel+threshold.
Diffstat (limited to 'gst/spectrum/demo-audiotest.c')
-rw-r--r--gst/spectrum/demo-audiotest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/spectrum/demo-audiotest.c b/gst/spectrum/demo-audiotest.c
index 05c9f886..bc2e9abc 100644
--- a/gst/spectrum/demo-audiotest.c
+++ b/gst/spectrum/demo-audiotest.c
@@ -82,7 +82,7 @@ draw_spectrum (gfloat * data)
TRUE, 0, 0, spect_bands, spect_height);
for (i = 0; i < spect_bands; i++) {
gdk_draw_rectangle (drawingarea->window, drawingarea->style->white_gc,
- TRUE, i, spect_height - data[i], 1, data[i]);
+ TRUE, i, -data[i], 1, spect_height + data[i]);
}
gdk_window_end_paint (drawingarea->window);
}