1 /*
2 * Copyright (C) 2001 CodeFactory AB
3 * Copyright (C) 2001 Thomas Nyberg <thomas@codefactory.se>
4 * Copyright (C) 2001-2002 Andy Wingo <apwingo@eos.ncsu.edu>
5 * Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20 */
21
22 #ifdef HAVE_CONFIG_H
23 #include "config.h"
24 #endif
25
26 #include "gstalsaelements.h"
27 #include "gstalsadeviceprovider.h"
28
29 #include <gst/gst-i18n-plugin.h>
30
31 static gboolean
plugin_init(GstPlugin * plugin)32 plugin_init (GstPlugin * plugin)
33 {
34 gboolean ret = FALSE;
35
36 ret |= GST_DEVICE_PROVIDER_REGISTER (alsadeviceprovider, plugin);
37
38 ret |= GST_ELEMENT_REGISTER (alsasrc, plugin);
39 ret |= GST_ELEMENT_REGISTER (alsasink, plugin);
40 ret |= GST_ELEMENT_REGISTER (alsamidisrc, plugin);
41
42 return TRUE;
43 }
44
45 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
46 GST_VERSION_MINOR,
47 alsa,
48 "ALSA plugin library",
49 plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
50