Add docs for lame and lame to docs. Specify allowed bitrates in the properties descri...
authorTim-Philipp Müller <tim@centricular.net>
Fri, 13 Oct 2006 14:19:24 +0000 (14:19 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 13 Oct 2006 14:19:24 +0000 (14:19 +0000)
Original commit message from CVS:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-ugly-plugins-docs.sgml:
* docs/plugins/gst-plugins-ugly-plugins-sections.txt:
* ext/lame/gstlame.c: (gst_lame_class_init):
* ext/lame/gstlame.h:
Add docs for lame and lame to docs. Specify allowed bitrates
in the properties description (#361140). Canonicalise object
property names (ie. use hyphen instead of underscore).
* docs/plugins/inspect/plugin-a52dec.xml:
* docs/plugins/inspect/plugin-amrnb.xml:
* docs/plugins/inspect/plugin-asf.xml:
* docs/plugins/inspect/plugin-dvdlpcmdec.xml:
* docs/plugins/inspect/plugin-dvdread.xml:
* docs/plugins/inspect/plugin-dvdsub.xml:
* docs/plugins/inspect/plugin-iec958.xml:
* docs/plugins/inspect/plugin-lame.xml:
* docs/plugins/inspect/plugin-mad.xml:
* docs/plugins/inspect/plugin-mpeg2dec.xml:
* docs/plugins/inspect/plugin-mpegaudioparse.xml:
* docs/plugins/inspect/plugin-mpegstream.xml:
* docs/plugins/inspect/plugin-siddec.xml:
Update version to CVS.

19 files changed:
ChangeLog
docs/plugins/Makefile.am
docs/plugins/gst-plugins-ugly-plugins-docs.sgml
docs/plugins/gst-plugins-ugly-plugins-sections.txt
docs/plugins/inspect/plugin-a52dec.xml
docs/plugins/inspect/plugin-amrnb.xml
docs/plugins/inspect/plugin-asf.xml
docs/plugins/inspect/plugin-dvdlpcmdec.xml
docs/plugins/inspect/plugin-dvdread.xml
docs/plugins/inspect/plugin-dvdsub.xml
docs/plugins/inspect/plugin-iec958.xml
docs/plugins/inspect/plugin-lame.xml
docs/plugins/inspect/plugin-mad.xml
docs/plugins/inspect/plugin-mpeg2dec.xml
docs/plugins/inspect/plugin-mpegaudioparse.xml
docs/plugins/inspect/plugin-mpegstream.xml
docs/plugins/inspect/plugin-siddec.xml
ext/lame/gstlame.c
ext/lame/gstlame.h

index e8ce415d697f320bea0281318d42b5e8c53db93b..5d28f06752b16f2bdf1e218e5c7c3d84a8ab390a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,29 @@
+2006-10-13  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * docs/plugins/Makefile.am:
+       * docs/plugins/gst-plugins-ugly-plugins-docs.sgml:
+       * docs/plugins/gst-plugins-ugly-plugins-sections.txt:
+       * ext/lame/gstlame.c: (gst_lame_class_init):
+       * ext/lame/gstlame.h:
+         Add docs for lame and lame to docs. Specify allowed bitrates
+         in the properties description (#361140). Canonicalise object
+         property names (ie. use hyphen instead of underscore).
+
+       * docs/plugins/inspect/plugin-a52dec.xml:
+       * docs/plugins/inspect/plugin-amrnb.xml:
+       * docs/plugins/inspect/plugin-asf.xml:
+       * docs/plugins/inspect/plugin-dvdlpcmdec.xml:
+       * docs/plugins/inspect/plugin-dvdread.xml:
+       * docs/plugins/inspect/plugin-dvdsub.xml:
+       * docs/plugins/inspect/plugin-iec958.xml:
+       * docs/plugins/inspect/plugin-lame.xml:
+       * docs/plugins/inspect/plugin-mad.xml:
+       * docs/plugins/inspect/plugin-mpeg2dec.xml:
+       * docs/plugins/inspect/plugin-mpegaudioparse.xml:
+       * docs/plugins/inspect/plugin-mpegstream.xml:
+       * docs/plugins/inspect/plugin-siddec.xml:
+         Update version to CVS.
+
 2006-10-13  Tim-Philipp Müller  <tim at centricular dot net>
 
        * ext/lame/gstlame.c: (gst_lame_sink_setcaps),
index 79de36c3cedfbd8b36d61b757e8d04a065b93693..c6ead195399dc2159d1f2f2ebab755014930cedd 100644 (file)
@@ -82,6 +82,7 @@ IGNORE_CFILES =
 #      $(top_srcdir)/ext/gnomevfs/gstgnomevfssink.c 
 
 EXTRA_HFILES = \
+       $(top_srcdir)/ext/lame/gstlame.h \
        $(top_srcdir)/ext/mad/gstmad.h
 
 # Images to copy into HTML directory.
index 2dc2844dda5ffac6a33f824438273b451a32153d..746d8f04a26ec6db1918680859b7985ace0167bd 100644 (file)
@@ -12,6 +12,8 @@
 
   <chapter>
     <title>gst-plugins-ugly Elements</title>
+    <xi:include href="xml/element-lame.xml" />
+    <xi:include href="xml/element-mad.xml" />
   </chapter>
 
   <chapter>
index 515956759a3dd771ab9ab4ec78ec859243913fa5..60a3b215f0335fe16eae2bec3c10b80a7bb42c44 100644 (file)
@@ -6,4 +6,11 @@ GstMad
 GstMadClass
 </SECTION>
 
+<SECTION>
+<FILE>element-lame</FILE>
+GstLame
+<TITLE>lame</TITLE>
+<SUBSECTION Standard>
+GstLameClass
+</SECTION>
 
index 090275578f5ff874993ed387a87ec2a7f7e5b074..1ff63a09bdf453c5f65775536f3ac631d277c874 100644 (file)
@@ -3,10 +3,10 @@
   <description>Decodes ATSC A/52 encoded audio streams</description>
   <filename>../../ext/a52dec/.libs/libgsta52dec.so</filename>
   <basename>libgsta52dec.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>GPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index 292a5bb67fc5ecd4d49a7287e289933ebcbbb1e0..e3008becb3cfd91151d9fc3035660dac075f9f91 100644 (file)
@@ -3,10 +3,10 @@
   <description>Adaptive Multi-Rate Narrow-Band</description>
   <filename>../../ext/amrnb/.libs/libgstamrnb.so</filename>
   <basename>libgstamrnb.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>unknown</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index 83970c01f660474b978f28ea30b87119098045b7..535d65ff9dd69a96430e5b4b8eef62220c7fdbb1 100644 (file)
@@ -3,10 +3,10 @@
   <description>Demuxes and muxes audio and video in Microsofts ASF format</description>
   <filename>../../gst/asfdemux/.libs/libgstasf.so</filename>
   <basename>libgstasf.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>LGPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
       <description>Demultiplexes ASF Streams</description>
       <author>Owen Fraser-Green &lt;owen@discobabe.net&gt;</author>
     </element>
+    <element>
+      <name>rtpasfdepay</name>
+      <longname>RTP ASF packet depayloader</longname>
+      <class>Codec/Depayloader/Network</class>
+      <description>Extracts ASF streams from RTP</description>
+      <author>Tim-Philipp Müller &lt;tim centricular net&gt;</author>
+    </element>
   </elements>
 </plugin>
\ No newline at end of file
index e51e155c3a8991c2dadbf7497078dd3e62a7b4ab..8264e58ced50aa5ab6e6e05f869437de4a988153 100644 (file)
@@ -3,10 +3,10 @@
   <description>Decode DVD LPCM frames into standard PCM</description>
   <filename>../../gst/dvdlpcmdec/.libs/libgstdvdlpcmdec.so</filename>
   <basename>libgstdvdlpcmdec.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>LGPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index 3917f62f078510a64e0ce5294d4525c8ceea838e..41c11886fd1eed36480b93114e26582986859137 100644 (file)
@@ -3,10 +3,10 @@
   <description>Access a DVD with dvdread</description>
   <filename>../../ext/dvdread/.libs/libgstdvdread.so</filename>
   <basename>libgstdvdread.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>GPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index 9fb3944ad9e525aed94ff70074abffe6e1f1ce04..bd14c1d733e95d720e7002db088baba097f08419 100644 (file)
@@ -3,10 +3,10 @@
   <description>Decode DVD subtitles to AYUV video frames</description>
   <filename>../../gst/dvdsub/.libs/libgstdvdsub.so</filename>
   <basename>libgstdvdsub.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>LGPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index 25d107b26db7e6a40e2e883c5d3d6537d9981d43..4eee035c9357acccffecb55024d43f9203ad34ab 100644 (file)
@@ -3,10 +3,10 @@
   <description>Convert raw AC3 into IEC958 (S/PDIF) frames</description>
   <filename>../../gst/iec958/.libs/libgstiec958.so</filename>
   <basename>libgstiec958.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>LGPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index 4d2c9788614faee730a981260cbd9d0352bca60c..919a5189f1c1b5c730aef767b3307fcffd3a5edb 100644 (file)
@@ -1,12 +1,12 @@
 <plugin>
   <name>lame</name>
-  <description>Encode MP3's with LAME</description>
+  <description>Encode MP3s with LAME</description>
   <filename>../../ext/lame/.libs/libgstlame.so</filename>
   <basename>libgstlame.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>LGPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index 6f98acf5f0421b31678832e2dbc99e69c0f792fc..197ded04f18916f34bb2a098f9ab007391d511bb 100644 (file)
@@ -3,10 +3,10 @@
   <description>id3 tag manipulation and mp3 decoding based on the mad library</description>
   <filename>../../ext/mad/.libs/libgstmad.so</filename>
   <basename>libgstmad.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>GPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index 5a0fbae6e8aa8c5f6ad14facb8eb81a56e6c6cc9..608f704eb12b442faccecd339b5758d45ccfc62e 100644 (file)
@@ -3,10 +3,10 @@
   <description>LibMpeg2 decoder</description>
   <filename>../../ext/mpeg2dec/.libs/libgstmpeg2dec.so</filename>
   <basename>libgstmpeg2dec.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>GPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index c26f0238c145aa3c3b31ad925b3c155d8cde6a34..c2f29611a3704bc1ef07aedb006697cd102c385f 100644 (file)
@@ -3,10 +3,10 @@
   <description>MPEG-1 layer 1/2/3 audio parser</description>
   <filename>../../gst/mpegaudioparse/.libs/libgstmpegaudioparse.so</filename>
   <basename>libgstmpegaudioparse.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>LGPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index d1ead85614847a6d0e50515409286bc721d91476..1266e35c3528d3381b94fadaed3d9d9ceeb8c418 100644 (file)
@@ -3,10 +3,10 @@
   <description>MPEG system stream parser</description>
   <filename>../../gst/mpegstream/.libs/libgstmpegstream.so</filename>
   <basename>libgstmpegstream.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>LGPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index c8f13e9bc042a2665d615fa8317198c9345ef89d..ea82e0674828750ad53eced3d662b90f86f4901c 100644 (file)
@@ -3,10 +3,10 @@
   <description>Uses libsidplay to decode .sid files</description>
   <filename>../../ext/sidplay/.libs/libgstsid.so</filename>
   <basename>libgstsid.so</basename>
-  <version>0.10.4</version>
+  <version>0.10.4.1</version>
   <license>GPL</license>
   <source>gst-plugins-ugly</source>
-  <package>GStreamer Ugly Plug-ins source release</package>
+  <package>GStreamer Ugly Plug-ins CVS/prerelease</package>
   <origin>Unknown package origin</origin>
   <elements>
     <element>
index 36bcae2d144b037b10fe5db2bd22d33416ed9712..c714e63fe66fc9a8c3e4a4cbcd799f9e757ff270 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+/**
+ * SECTION:element-lame
+ * @short_description: an encoder that encodes audio to MPEG-1 layer 3 (mp3)
+ * @see_also: mad, vorbisenc
+ *
+ * <refsect2>
+ * <para>
+ * This element encodes raw integer audio into an MPEG-1 layer 3 (MP3) stream.
+ * Note that <ulink url="http://en.wikipedia.org/wiki/MP3">MP3</ulink> is not
+ * a free format, there are licensing and patent issues to take into
+ * consideration. See <ulink url="http://www.vorbis.com/">Ogg/Vorbis</ulink>
+ * for a royalty free (and often higher quality) alternative.
+ * </para>
+ * <title>Writing metadata (tags)</title>
+ * <para>
+ * Whilst the lame encoder element does claim to implement the GstTagSetter
+ * interface, it does so only for backwards compatibility reasons. Tag writing
+ * has been removed from lame. Use external elements like id3v2mux or apev2mux
+ * to add tags to your MP3 streams. The same goes for XING headers: use the
+ * xingmux element to add XING headers to your VBR mp3 file.
+ * </para>
+ * <title>Example pipelines</title>
+ * <para>
+ * Encode a test sine signal to MP3.
+ * </para>
+ * <programlisting>
+ * gst-launch -v audiotestsrc wave=sine num-buffers=100 ! audioconvert ! lame ! filesink location=sine.mp3
+ * </programlisting>
+ * <para>
+ * Record from a sound card using ALSA and encode to MP3
+ * </para>
+ * <programlisting>
+ * gst-launch -v alsasrc ! audioconvert ! lame bitrate=192 ! filesink location=alsasrc.mp3
+ * </programlisting>
+ * <para>
+ * Transcode from a .wav file to MP3 (the id3v2mux element is optional):
+ * </para>
+ * <programlisting>
+ * gst-launch -v filesrc location=music.wav ! decodebin ! audioconvert ! audioresample ! lame bitrate=192 ! id3v2mux ! filesink location=music.mp3
+ * </programlisting>
+ * <para>
+ * Encode Audio CD track 5 to MP3:
+ * </para>
+ * <programlisting>
+ * gst-launch -v cdda://5 ! audioconvert ! lame bitrate=192 ! filesink location=track5.mp3
+ * </programlisting>
+ * </refsect2>
+ *
+ * Last reviewed on 2006-10-13 (0.10.4)
+ */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -315,7 +366,9 @@ gst_lame_class_init (GstLameClass * klass)
   gobject_class->finalize = gst_lame_finalize;
 
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BITRATE,
-      g_param_spec_int ("bitrate", "Bitrate (kb/s)", "Bitrate in kbit/sec",
+      g_param_spec_int ("bitrate", "Bitrate (kb/s)",
+          "Bitrate in kbit/sec (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, "
+          "112, 128, 160, 192, 224, 256 or 320)",
           8, 320, 128, G_PARAM_READWRITE));
   /* compression ratio set to 0.0 by default otherwise it overrides the bitrate setting */
   g_object_class_install_property (G_OBJECT_CLASS (klass),
@@ -331,10 +384,10 @@ gst_lame_class_init (GstLameClass * klass)
       g_param_spec_enum ("mode", "Mode", "Encoding mode", GST_TYPE_LAME_MODE, 0,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FORCE_MS,
-      g_param_spec_boolean ("force_ms", "Force ms",
+      g_param_spec_boolean ("force-ms", "Force ms",
           "Force ms_stereo on all frames", TRUE, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FREE_FORMAT,
-      g_param_spec_boolean ("free_format", "Free format",
+      g_param_spec_boolean ("free-format", "Free format",
           "Produce a free format bitstream", TRUE, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_COPYRIGHT,
       g_param_spec_boolean ("copyright", "Copyright", "Mark as copyright", TRUE,
@@ -343,78 +396,82 @@ gst_lame_class_init (GstLameClass * klass)
       g_param_spec_boolean ("original", "Original", "Mark as non-original",
           TRUE, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ERROR_PROTECTION,
-      g_param_spec_boolean ("error_protection", "Error protection",
+      g_param_spec_boolean ("error-protection", "Error protection",
           "Adds 16 bit checksum to every frame", TRUE, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PADDING_TYPE,
-      g_param_spec_enum ("padding_type", "Padding type", "Padding type",
+      g_param_spec_enum ("padding-type", "Padding type", "Padding type",
           GST_TYPE_LAME_PADDING, 0, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_EXTENSION,
       g_param_spec_boolean ("extension", "Extension", "Extension", TRUE,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_STRICT_ISO,
-      g_param_spec_boolean ("strict_iso", "Strict ISO",
+      g_param_spec_boolean ("strict-iso", "Strict ISO",
           "Comply as much as possible to ISO MPEG spec", TRUE,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass),
-      ARG_DISABLE_RESERVOIR, g_param_spec_boolean ("disable_reservoir",
+      ARG_DISABLE_RESERVOIR, g_param_spec_boolean ("disable-reservoir",
           "Disable reservoir", "Disable the bit reservoir", TRUE,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VBR,
       g_param_spec_enum ("vbr", "VBR", "Specify bitrate mode",
           GST_TYPE_LAME_VBRMODE, vbr_off, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VBR_QUALITY,
-      g_param_spec_enum ("vbr_quality", "VBR Quality", "VBR Quality",
+      g_param_spec_enum ("vbr-quality", "VBR Quality", "VBR Quality",
           GST_TYPE_LAME_QUALITY, 5, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VBR_MEAN_BITRATE,
-      g_param_spec_int ("vbr_mean_bitrate", "VBR mean bitrate",
-          "Specify mean bitrate", 0, G_MAXINT, 0, G_PARAM_READWRITE));
+      g_param_spec_int ("vbr-mean-bitrate", "VBR mean bitrate",
+          "Specify mean VBR bitrate", 0, G_MAXINT, 0, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VBR_MIN_BITRATE,
-      g_param_spec_int ("vbr_min_bitrate", "VBR min bitrate",
-          "Specify min bitrate", 0, G_MAXINT, 0, G_PARAM_READWRITE));
+      g_param_spec_int ("vbr-min-bitrate", "VBR min bitrate",
+          "Specify minimum VBR bitrate (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, "
+          "112, 128, 160, 192, 224, 256 or 320)",
+          0, G_MAXINT, 0, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VBR_MAX_BITRATE,
-      g_param_spec_int ("vbr_max_bitrate", "VBR max bitrate",
-          "Specify max bitrate", 0, G_MAXINT, 0, G_PARAM_READWRITE));
+      g_param_spec_int ("vbr-max-bitrate", "VBR max bitrate",
+          "Specify maximum VBR bitrate (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, "
+          "112, 128, 160, 192, 224, 256 or 320)",
+          0, G_MAXINT, 0, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VBR_HARD_MIN,
-      g_param_spec_int ("vbr_hard_min", "VBR hard min",
+      g_param_spec_int ("vbr-hard-min", "VBR hard min",
           "Specify hard min bitrate", 0, G_MAXINT, 0, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_LOWPASS_FREQ,
-      g_param_spec_int ("lowpass_freq", "Lowpass freq",
+      g_param_spec_int ("lowpass-freq", "Lowpass freq",
           "frequency(kHz), lowpass filter cutoff above freq", 0, 50000, 0,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_LOWPASS_WIDTH,
-      g_param_spec_int ("lowpass_width", "Lowpass width",
+      g_param_spec_int ("lowpass-width", "Lowpass width",
           "frequency(kHz) - default 15% of lowpass freq", 0, G_MAXINT, 0,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HIGHPASS_FREQ,
-      g_param_spec_int ("highpass_freq", "Highpass freq",
+      g_param_spec_int ("highpass-freq", "Highpass freq",
           "frequency(kHz), highpass filter cutoff below freq", 0, 50000, 0,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HIGHPASS_WIDTH,
-      g_param_spec_int ("highpass_width", "Highpass width",
+      g_param_spec_int ("highpass-width", "Highpass width",
           "frequency(kHz) - default 15% of highpass freq", 0, G_MAXINT, 0,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ATH_ONLY,
-      g_param_spec_boolean ("ath_only", "ATH only",
+      g_param_spec_boolean ("ath-only", "ATH only",
           "Ignore GPSYCHO completely, use ATH only", TRUE, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ATH_SHORT,
-      g_param_spec_boolean ("ath_short", "ATH short",
+      g_param_spec_boolean ("ath-short", "ATH short",
           "Ignore GPSYCHO for short blocks, use ATH only", TRUE,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_NO_ATH,
-      g_param_spec_boolean ("no_ath", "No ath",
+      g_param_spec_boolean ("no-ath", "No ath",
           "turns ATH down to a flat noise floor", TRUE, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ATH_LOWER,
-      g_param_spec_int ("ath_lower", "ATH lower", "lowers ATH by x dB",
+      g_param_spec_int ("ath-lower", "ATH lower", "lowers ATH by x dB",
           G_MININT, G_MAXINT, 0, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_CWLIMIT,
       g_param_spec_int ("cwlimit", "Cwlimit",
           "Compute tonality up to freq (in kHz) default 8.8717", 0, 50000, 0,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ALLOW_DIFF_SHORT,
-      g_param_spec_boolean ("allow_diff_short", "Allow diff short",
+      g_param_spec_boolean ("allow-diff-short", "Allow diff short",
           "Allow diff short", TRUE, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_NO_SHORT_BLOCKS,
-      g_param_spec_boolean ("no_short_blocks", "No short blocks",
+      g_param_spec_boolean ("no-short-blocks", "No short blocks",
           "Do not use short blocks", TRUE, G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_EMPHASIS,
       g_param_spec_boolean ("emphasis", "Emphasis", "Emphasis", TRUE,
index 0af09fd52961df457db292dc7bda598d60387946..8c980e47b8efb4edcfbb443767814092f3efb74d 100644 (file)
@@ -42,9 +42,15 @@ G_BEGIN_DECLS
 typedef struct _GstLame GstLame;
 typedef struct _GstLameClass GstLameClass;
 
+/**
+ * GstLame:
+ *
+ * Opaque data structure.
+ */
 struct _GstLame {
   GstElement element;
-  /* pads */
+
+  /*< private >*/
   GstPad *srcpad, *sinkpad;
 
   gint samplerate;