From 9eb7c68f13a040d385db220025d9d2bcbab2391a Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 22 Aug 2005 09:27:14 +0000 Subject: [PATCH] remove filter.func Original commit message from CVS: remove filter.func --- gst/volume/Makefile.am | 2 +- gst/volume/filter.func | 25 ------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 gst/volume/filter.func diff --git a/gst/volume/Makefile.am b/gst/volume/Makefile.am index 6755ddd6cb..3ea28df27a 100644 --- a/gst/volume/Makefile.am +++ b/gst/volume/Makefile.am @@ -8,7 +8,7 @@ libgstvolume_la_LIBADD = \ $(GST_BASE_LIBS) \ $(GST_LIBS) -noinst_HEADERS = gstvolume.h filter.func +noinst_HEADERS = gstvolume.h if HAVE_GTK noinst_PROGRAMS = demo diff --git a/gst/volume/filter.func b/gst/volume/filter.func deleted file mode 100644 index 430bc1ce76..0000000000 --- a/gst/volume/filter.func +++ /dev/null @@ -1,25 +0,0 @@ -{ - guint j; - gint16 vol_i = filter->volume_i; - gfloat vol_f = filter->volume_f; - - switch (filter->format) { - case GST_VOLUME_FORMAT_INT: - if (filter->muted) vol_i = 0; - - for (j = 0; j < num_samples; j++) { - data[j] = (gint16) (((gint32)vol_i) * ((gint32)data[j]) / 8192); - } - break; - case GST_VOLUME_FORMAT_FLOAT: - if (filter->muted) vol_f = 0; - - for (j = 0; j < num_samples; j++) { - data[j] *= vol_f; - } - break; - default: - g_warning("volume: filter.func: no format, aborting"); - break; - } -}