mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 13:26:36 +00:00
remove filter.func
Original commit message from CVS: remove filter.func
This commit is contained in:
parent
6271b0c200
commit
9eb7c68f13
2 changed files with 1 additions and 26 deletions
|
@ -8,7 +8,7 @@ libgstvolume_la_LIBADD = \
|
||||||
$(GST_BASE_LIBS) \
|
$(GST_BASE_LIBS) \
|
||||||
$(GST_LIBS)
|
$(GST_LIBS)
|
||||||
|
|
||||||
noinst_HEADERS = gstvolume.h filter.func
|
noinst_HEADERS = gstvolume.h
|
||||||
|
|
||||||
if HAVE_GTK
|
if HAVE_GTK
|
||||||
noinst_PROGRAMS = demo
|
noinst_PROGRAMS = demo
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue