2007-09-25 17:18:34 +00:00
|
|
|
/* GStreamer PCM/A-Law conversions
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2007-09-25 17:18:34 +00:00
|
|
|
*/
|
|
|
|
|
2003-06-29 19:46:12 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
2007-09-25 17:18:34 +00:00
|
|
|
|
2011-12-09 09:50:18 +00:00
|
|
|
#include <gst/audio/audio.h>
|
|
|
|
|
2001-12-22 23:27:31 +00:00
|
|
|
#include "alaw-encode.h"
|
|
|
|
#include "alaw-decode.h"
|
|
|
|
|
|
|
|
static gboolean
|
2004-03-14 22:34:33 +00:00
|
|
|
plugin_init (GstPlugin * plugin)
|
2001-12-22 23:27:31 +00:00
|
|
|
{
|
2021-02-16 09:57:58 +00:00
|
|
|
gboolean ret = FALSE;
|
|
|
|
|
|
|
|
ret |= GST_ELEMENT_REGISTER (alawenc, plugin);
|
|
|
|
ret |= GST_ELEMENT_REGISTER (alawdec, plugin);
|
2001-12-22 23:27:31 +00:00
|
|
|
|
2021-02-16 09:57:58 +00:00
|
|
|
return ret;
|
2001-12-22 23:27:31 +00:00
|
|
|
}
|
|
|
|
|
2007-09-25 17:18:34 +00:00
|
|
|
/* FIXME 0.11: merge alaw and mulaw into one plugin? */
|
2004-03-14 22:34:33 +00:00
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
2012-04-05 15:36:38 +00:00
|
|
|
alaw,
|
2004-03-14 22:34:33 +00:00
|
|
|
"ALaw audio conversion routines",
|
2005-11-14 02:13:35 +00:00
|
|
|
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|