+2005-09-23 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * docs/plugins/Makefile.am:
+ * docs/plugins/gst-plugins-base-plugins-docs.sgml:
+ * docs/plugins/gst-plugins-base-plugins-sections.txt:
+ * gst/volume/gstvolume.c:
+ add/fix docs
+ * gst-libs/gst/audio/audio.c: (gst_audio_frame_byte_size):
+ * gst-libs/gst/audio/audio.h:
+ add conversion macros for frames <-> clocktime
+
2005-09-23 David Schleef <ds@schleef.org>
* gst/audioresample/Makefile.am:
-Subproject commit 793f85c1c14de9c1053b8db7df44bfbba1f0a156
+Subproject commit c7160d5b7c76f00609cf7b6e9b782e99f626686c
EXTRA_HFILES = \
$(top_srcdir)/ext/theora/gsttheoraenc.h \
$(top_srcdir)/ext/vorbis/vorbisenc.h \
+ $(top_srcdir)/gst/audioconvert/gstaudioconvert.h \
$(top_srcdir)/gst/ffmpegcolorspace/gstffmpegcolorspace.h \
$(top_srcdir)/gst/tcp/gstmultifdsink.h \
$(top_srcdir)/gst/tcp/gsttcpserversink.h \
<chapter>
<title>gst-plugins-base Elements</title>
+ <xi:include href="xml/element-audioconvert.xml" />
<xi:include href="xml/element-ffmpegcolorspace.xml" />
<!--
<xi:include href="xml/element-gnomevfssink.xml" />
+
+<SECTION>
+<FILE>element-audioconvert</FILE>
+<TITLE>audioconvert</TITLE>
+GstAudioConvert
+<SUBSECTION Standard>
+GstAudioConvertClass
+</SECTION>
+
<SECTION>
<FILE>element-ffmpegcolorspace</FILE>
<TITLE>ffmpegcolorspace</TITLE>
GstFFMpegCspClass
</SECTION>
+<SECTION>
<FILE>element-multifdsink</FILE>
<TITLE>multifdsink</TITLE>
GstMultiFdSink
<FILE>element-theoraenc</FILE>
<TITLE>theoraenc</TITLE>
GstTheoraEnc
+GstTheoraEncBorderMode
<SUBSECTION Standard>
GstTheoraEncClass
</SECTION>
-
<SECTION>
<FILE>element-videotestsrc</FILE>
<TITLE>videotestsrc</TITLE>
GstVideoTestSrc
+GstVideoTestSrcPattern
<SUBSECTION Standard>
GstVideoTestSrcClass
</SECTION>
/* calculate byte size of an audio frame
* this should be moved closer to the gstreamer core
* and be implemented for every mime type IMO
- * returns -1 if there's an error (to avoid division by zero),
+ * returns -1 if there's an error (to avoid division by zero),
* or the byte size if everything's ok
*/
* Andy Wingo, 18 August 2001
* Thomas, 6 September 2002 */
+/* conversion macros */
+#define GST_FRAMES_TO_CLOCK_TIME(frames, rate) \
+ ((GstClockTime) (((gdouble) frames / rate) * GST_SECOND))
+
+#define GST_CLOCK_TIME_TO_FRAMES(clocktime, rate) \
+ ((gint64) (((gdouble) clocktime / GST_SECOND) * rate))
+
#define GST_AUDIO_DEF_RATE 44100
#define GST_AUDIO_INT_PAD_TEMPLATE_CAPS \
* <programlisting>
* gst-launch -v -m sinesrc ! volume volume=0.5 ! level ! fakesink silent=TRUE
* </programlisting>
- * This pipeline shows that the level of sinesrc has been halved compared to
+ * This pipeline shows that the level of sinesrc has been halved
+ * (peak values are around -6 dB and RMS around -9 dB) compared to
* the same pipeline without the volume element.
* </para>
* </refsect2>