alsasrc

alsasrc — capture audio from an alsa device

Synopsis




            GstAlsaSrc;

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstBaseSrc
                     +----GstPushSrc
                           +----GstBaseAudioSrc
                                 +----GstAudioSrc
                                       +----GstAlsaSrc

Implemented Interfaces

GstAlsaSrc implements GstImplementsInterface and GstMixer.

Properties


  "device"               gchararray            : Read / Write
  "device-name"          gchararray            : Read

Description

This element reads data from an audio card using the ALSA API.

Example pipelines

Record from a sound card using ALSA and encode to Ogg/Vorbis.

gst-launch -v alsasrc ! audioconvert ! vorbisenc ! oggmux ! filesink location=alsasrc.ogg

Last reviewed on 2006-03-01 (0.10.4)

Element Information

plugin alsa
author Wim Taymans <wim@fluendo.com>
class Source/Audio

Details

GstAlsaSrc

typedef struct _GstAlsaSrc GstAlsaSrc;

Opaque data structure

Properties

The "device" property

  "device"               gchararray            : Read / Write

ALSA device, as defined in an asound configuration file.

Default value: "default"


The "device-name" property

  "device-name"          gchararray            : Read

Human-readable name of the sound device.

Default value: ""

See Also

alsasink, alsamixer