From 015dc9060f89f77005e66ef880e44204292461f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 11 Nov 2007 21:12:10 +0000 Subject: 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. --- gst/equalizer/demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gst/equalizer') diff --git a/gst/equalizer/demo.c b/gst/equalizer/demo.c index b4f1c550..43518463 100644 --- a/gst/equalizer/demo.c +++ b/gst/equalizer/demo.c @@ -88,7 +88,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); } @@ -134,7 +134,7 @@ main (int argc, char *argv[]) /* White noise */ src = gst_element_factory_make ("audiotestsrc", "src"); - g_object_set (G_OBJECT (src), "wave", 5, "volume", 0.5, NULL); + g_object_set (G_OBJECT (src), "wave", 5, "volume", 0.8, NULL); /* Force float32 samples */ capsfilter = gst_element_factory_make ("capsfilter", "capsfilter"); -- cgit v1.2.1