remove filter.func
authorThomas Vander Stichele <thomas@apestaart.org>
Mon, 22 Aug 2005 09:27:14 +0000 (09:27 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Mon, 22 Aug 2005 09:27:14 +0000 (09:27 +0000)
Original commit message from CVS:
remove filter.func

gst/volume/Makefile.am
gst/volume/filter.func [deleted file]

index 6755ddd..3ea28df 100644 (file)
@@ -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 (file)
index 430bc1c..0000000
+++ /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;
-  }
-}