diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-11-11 21:12:10 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-11-11 21:12:10 +0000 |
commit | 546ec34716cf67038e8546f0ba47e4a307bc5c7d (patch) | |
tree | 41f341dec37a7f33a376ed3071dbbe268ad09e00 /tests/examples/spectrum/demo-audiotest.c | |
parent | 4f77b464948c84e0509f400f34467f48066fc6e8 (diff) |
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 'tests/examples/spectrum/demo-audiotest.c')
-rw-r--r-- | tests/examples/spectrum/demo-audiotest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/examples/spectrum/demo-audiotest.c b/tests/examples/spectrum/demo-audiotest.c index 05c9f886..bc2e9abc 100644 --- a/tests/examples/spectrum/demo-audiotest.c +++ b/tests/examples/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); } |