diff options
Diffstat (limited to 'sys/oss')
-rw-r--r-- | sys/oss/gstossmixerelement.c | 24 | ||||
-rw-r--r-- | sys/oss/gstosssink.c | 31 | ||||
-rw-r--r-- | sys/oss/gstosssrc.c | 20 |
3 files changed, 75 insertions, 0 deletions
diff --git a/sys/oss/gstossmixerelement.c b/sys/oss/gstossmixerelement.c index 24e58763..34e6904f 100644 --- a/sys/oss/gstossmixerelement.c +++ b/sys/oss/gstossmixerelement.c @@ -17,6 +17,23 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-ossmixer + * @short_description: element to control sound input and output levels with OSS + * + * <refsect2> + * <para> + * This element lets you adjust sound input and output levels with the + * Open Sound System (OSS). It supports the GstMixer interface, which can be + * used to obtain a list of available mixer tracks. Set the mixer element to + * READY state before using the GstMixer interface on it. + * </para> + * <title>Example pipelines</title> + * <para> + * ossmixer can't be used in a sensible way in gst-launch. + * </para> + * </refsect2> + */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -78,6 +95,13 @@ gst_oss_mixer_element_class_init (GstOssMixerElementClass * klass) gobject_class->set_property = gst_oss_mixer_element_set_property; gobject_class->get_property = gst_oss_mixer_element_get_property; + /** + * GstOssMixerElement:device + * + * OSS mixer device (usually /dev/mixer) + * + * Since: 0.10.5 + **/ g_object_class_install_property (gobject_class, PROP_DEVICE, g_param_spec_string ("device", "Device", "OSS mixer device (usually /dev/mixer)", DEFAULT_DEVICE, diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index f2621071..9f2902a0 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -20,6 +20,37 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-osssink + * @short_description: output sound using OSS + * + * <refsect2> + * <para> + * This element lets you output sound using the Open Sound System (OSS). + * </para> + * <para> + * Note that you should almost always use generic audio conversion elements + * like audioconvert and audioresample in front of an audiosink to make sure + * your pipeline works under all circumstances (those conversion elements will + * act in passthrough-mode if no conversion is necessary). + * </para> + * <title>Example pipelines</title> + * <para> + * <programlisting> + * gst-launch -v audiotestsrc ! audioconvert ! volume volume=0.1 ! osssink + * </programlisting> + * will output a sine wave (continuous beep sound) to your sound card (with + * a very low volume as precaution). + * </para> + * <para> + * <programlisting> + * gst-launch -v filesrc location=music.ogg ! decodebin ! audioconvert ! audioresample ! osssink + * </programlisting> + * will play an Ogg/Vorbis audio file and output it using the Open Sound System. + * </para> + * </refsect2> + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c index f740f91c..26eb6c6f 100644 --- a/sys/oss/gstosssrc.c +++ b/sys/oss/gstosssrc.c @@ -20,6 +20,26 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-osssrc + * @short_description: record sound from your sound card using OSS + * + * <refsect2> + * <para> + * This element lets you record sound using the Open Sound System (OSS). + * </para> + * <title>Example pipelines</title> + * <para> + * <programlisting> + * gst-launch -v osssrc ! audioconvert ! vorbisenc ! oggmux ! filesink location=mymusic.ogg + * </programlisting> + * will record sound from your sound card using OSS and encode it to an + * Ogg/Vorbis file (this will only work if your mixer settings are right + * and the right inputs enabled etc.) + * </para> + * </refsect2> + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif |