summaryrefslogtreecommitdiffstats
path: root/gst/level
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2003-09-21 12:52:55 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2003-09-21 12:52:55 +0000
commit6ba97f7ea980ba9f1fa187da318d9ee7a2f99fac (patch)
tree7c94491b375d0d07689a47422fbb1b9663f0172e /gst/level
parent1bb14f4e4864696d32bdbb24168a6b8d7e561753 (diff)
remove debugging prints
Original commit message from CVS: remove debugging prints
Diffstat (limited to 'gst/level')
-rw-r--r--gst/level/Makefile.am5
-rw-r--r--gst/level/gstlevel.c17
2 files changed, 13 insertions, 9 deletions
diff --git a/gst/level/Makefile.am b/gst/level/Makefile.am
index 702b2cd6..27ba3e35 100644
--- a/gst/level/Makefile.am
+++ b/gst/level/Makefile.am
@@ -8,6 +8,11 @@ libgstlevel_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
noinst_HEADERS = gstlevel.h filter.func
+noinst_PROGRAMS = demo
+demo_SOURCES = demo.c
+demo_CFLAGS = $(GTK_CFLAGS) $(GST_CFLAGS)
+demo_LDFLAGS = $(GTK_LIBS) $(GST_LIBS)
+
EXTRA_libgstlevel_la_SOURCES = gstlevel-marshal.list
BUILT_SOURCES = \
diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c
index 4fdfb0c7..6f6cf8e2 100644
--- a/gst/level/gstlevel.c
+++ b/gst/level/gstlevel.c
@@ -208,7 +208,6 @@ gst_level_chain (GstPad *pad, GstBuffer *buf)
g_return_if_fail (buf != NULL);
- g_print ("\nDEBUG: chain start\n");
filter = GST_LEVEL (GST_OBJECT_PARENT (pad));
g_return_if_fail (filter != NULL);
g_return_if_fail (GST_IS_LEVEL (filter));
@@ -237,7 +236,7 @@ gst_level_chain (GstPad *pad, GstBuffer *buf)
&CS, &filter->peak[i]);
break;
}
- g_print ("DEBUG: CS %f, peak %f\n", CS, filter->peak[i]);
+ /* g_print ("DEBUG: CS %f, peak %f\n", CS, filter->peak[i]); */
filter->CS[i] += CS;
}
@@ -248,8 +247,8 @@ gst_level_chain (GstPad *pad, GstBuffer *buf)
for (i = 0; i < filter->channels; ++i)
{
filter->decay_peak_age[i] += num_samples;
- g_print ("filter peak info [%d]: peak %f, age %f\n", i,
- filter->last_peak[i], filter->decay_peak_age[i]);
+ /* g_print ("filter peak info [%d]: peak %f, age %f\n", i,
+ filter->last_peak[i], filter->decay_peak_age[i]); */
/* update running peak */
if (filter->peak[i] > filter->last_peak[i])
filter->last_peak[i] = filter->peak[i];
@@ -257,7 +256,7 @@ gst_level_chain (GstPad *pad, GstBuffer *buf)
/* update decay peak */
if (filter->peak[i] >= filter->decay_peak[i])
{
- g_print ("new peak, %f\n", filter->peak[i]);
+ /* g_print ("new peak, %f\n", filter->peak[i]); */
filter->decay_peak[i] = filter->peak[i];
filter->decay_peak_age[i] = 0;
}
@@ -275,11 +274,11 @@ gst_level_chain (GstPad *pad, GstBuffer *buf)
falloff_dB = filter->decay_peak_falloff * length;
falloff = pow (10, falloff_dB / -20.0);
- g_print ("falloff: length %f, dB falloff %f, falloff factor %e\n",
- length, falloff_dB, falloff);
+ /* g_print ("falloff: length %f, dB falloff %f, falloff factor %e\n",
+ length, falloff_dB, falloff); */
filter->decay_peak[i] *= falloff;
- g_print ("peak is %f samples old, decayed with factor %e to %f\n",
- filter->decay_peak_age[i], falloff, filter->decay_peak[i]);
+ /* g_print ("peak is %f samples old, decayed with factor %e to %f\n",
+ filter->decay_peak_age[i], falloff, filter->decay_peak[i]); */
}
}
}