1 /* GStreamer ReplayGain plugin
2  *
3  * Copyright (C) 2006 Rene Stadler <mail@renestadler.de>
4  *
5  * replaygain.c: Plugin providing ReplayGain related elements
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  */
22 
23 #ifdef HAVE_CONFIG_H
24 #include <config.h>
25 #endif
26 
27 #include <gst/gst.h>
28 
29 #include "gstrganalysis.h"
30 #include "gstrglimiter.h"
31 #include "gstrgvolume.h"
32 
33 static gboolean
plugin_init(GstPlugin * plugin)34 plugin_init (GstPlugin * plugin)
35 {
36   if (!gst_element_register (plugin, "rganalysis", GST_RANK_NONE,
37           GST_TYPE_RG_ANALYSIS))
38     return FALSE;
39 
40   if (!gst_element_register (plugin, "rglimiter", GST_RANK_NONE,
41           GST_TYPE_RG_LIMITER))
42     return FALSE;
43 
44   if (!gst_element_register (plugin, "rgvolume", GST_RANK_NONE,
45           GST_TYPE_RG_VOLUME))
46     return FALSE;
47 
48   return TRUE;
49 }
50 
51 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, replaygain,
52     "ReplayGain volume normalization", plugin_init, VERSION, GST_LICENSE,
53     GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
54