audiofx: add stereo element which was moved from -bad to build

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/457
This commit is contained in:
Tim-Philipp Müller 2018-12-25 14:51:38 +01:00
parent d0a5e9d8b0
commit f480261815
8 changed files with 50 additions and 16 deletions

View file

@ -99,6 +99,7 @@ EXTRA_HFILES = \
$(top_srcdir)/gst/audiofx/audiowsinclimit.h \
$(top_srcdir)/gst/audiofx/audiofirfilter.h \
$(top_srcdir)/gst/audiofx/gstscaletempo.h \
$(top_srcdir)/gst/audiofx/gststereo.h \
$(top_srcdir)/gst/audioparsers/gstaacparse.h \
$(top_srcdir)/gst/audioparsers/gstac3parse.h \
$(top_srcdir)/gst/audioparsers/gstamrparse.h \

View file

@ -24938,3 +24938,22 @@
<DEFAULT>0</DEFAULT>
</ARG>
<ARG>
<NAME>GstStereo::active</NAME>
<TYPE>gboolean</TYPE>
<RANGE></RANGE>
<FLAGS>rw</FLAGS>
<NICK>active</NICK>
<BLURB>active.</BLURB>
<DEFAULT>TRUE</DEFAULT>
</ARG>
<ARG>
<NAME>GstStereo::stereo</NAME>
<TYPE>gfloat</TYPE>
<RANGE>[0,1]</RANGE>
<FLAGS>rw</FLAGS>
<NICK>stereo</NICK>
<BLURB>stereo.</BLURB>
<DEFAULT>0.1</DEFAULT>
</ARG>

View file

@ -118,6 +118,7 @@ GObject
GstIirEqualizer3Bands
GstIirEqualizerNBands
GstSpectrum
GstStereo
GstAudioPanorama
GstBreakMyData
GstCapsSetter

View file

@ -282,5 +282,26 @@
</caps>
</pads>
</element>
<element>
<name>stereo</name>
<longname>Stereo effect</longname>
<class>Filter/Effect/Audio</class>
<description>Muck with the stereo signal to enhance its &apos;stereo-ness&apos;</description>
<author>Erik Walthinsen &lt;omega@cse.ogi.edu&gt;</author>
<pads>
<caps>
<name>sink</name>
<direction>sink</direction>
<presence>always</presence>
<details>audio/x-raw, format=(string)S16LE, rate=(int)[ 1, 2147483647 ], channels=(int)2</details>
</caps>
<caps>
<name>src</name>
<direction>source</direction>
<presence>always</presence>
<details>audio/x-raw, format=(string)S16LE, rate=(int)[ 1, 2147483647 ], channels=(int)2</details>
</caps>
</pads>
</element>
</elements>
</plugin>

View file

@ -24,7 +24,8 @@ libgstaudiofx_la_SOURCES = audiofx.c\
audiowsinclimit.c \
audiofirfilter.c \
audioecho.c \
gstscaletempo.c
gstscaletempo.c \
gststereo.c
nodist_libgstaudiofx_la_SOURCES = $(ORC_NODIST_SOURCES)
# flags used to compile this plugin
@ -57,4 +58,5 @@ noinst_HEADERS = audiopanorama.h \
audiofirfilter.h \
audioecho.h \
gstscaletempo.h \
gststereo.h \
math_compat.h

View file

@ -37,6 +37,7 @@
#include "audiofirfilter.h"
#include "audioecho.h"
#include "gstscaletempo.h"
#include "gststereo.h"
/* entry point to initialize the plug-in
* initialize the plug-in itself
@ -71,7 +72,8 @@ plugin_init (GstPlugin * plugin)
gst_element_register (plugin, "audioecho", GST_RANK_NONE,
GST_TYPE_AUDIO_ECHO) &&
gst_element_register (plugin, "scaletempo", GST_RANK_NONE,
GST_TYPE_SCALETEMPO));
GST_TYPE_SCALETEMPO) &&
gst_element_register (plugin, "stereo", GST_RANK_NONE, GST_TYPE_STEREO));
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -199,16 +199,3 @@ gst_stereo_get_property (GObject * object, guint prop_id, GValue * value,
break;
}
}
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "stereo", GST_RANK_NONE,
GST_TYPE_STEREO);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
stereo,
"Muck with the stereo signal, enhance its 'stereo-ness'",
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)

View file

@ -14,7 +14,8 @@ audiofx_sources = [
'audiowsinclimit.c',
'audiofirfilter.c',
'audioecho.c',
'gstscaletempo.c'
'gstscaletempo.c',
'gststereo.c'
]
orcsrc = 'audiopanoramaorc'