diff --git a/common b/common index cd4da6a319..345fd98510 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit cd4da6a319d9f92d28f7b8a3b412577e6de50b64 +Subproject commit 345fd9851051274dd758a19bbe33dbb561b4d303 diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index b2b9a4530a..2ae77c9add 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -21,6 +21,31 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-audioconvert + * + * + * Audioconvert converts raw audio buffers between various possible formats. + * It supports integer to float conversion, widht/depth conversion, + * signedness and endianness conversion. + * Example launch line + * + * + * gst-launch -v -m sinesrc ! audioconvert ! audio/x-raw-int,channels=2,width=8,depth=8 ! level ! fakesink silent=TRUE + * + * This pipeline converts audio to 8-bit. The level element shows that + * the output levels still match the one for a sine wave. + * + * + * + * gst-launch -v -m sinesrc ! audioconvert ! vorbisenc ! fakesink silent=TRUE + * + * The vorbis encoder takes float audio data instead of the integer data + * generated by sinesrc. + * + * + */ + /* * design decisions: * - audioconvert converts buffers in a set of supported caps. If it supports