halaudiosrc

halaudiosrc — Audio source for sound device access via HAL

Synopsis

                    GstHalAudioSrc;

Properties

  "udi"                      gchar*                : Read / Write

Description

HalAudioSrc allows access to input of sound devices by specifying the corresponding persistent Unique Device Id (UDI) from the Hardware Abstraction Layer (HAL) in the "udi" property. It currently always embeds alsasrc or osssrc as HAL doesn't support other sound systems yet. You can also specify the UDI of a device that has ALSA or OSS subdevices. If both are present ALSA is preferred.

Examples

1
hal-find-by-property --key alsa.type --string capture
list the UDIs of all your ALSA input devices
1
gst-launch -v halaudiosrc udi=/org/freedesktop/Hal/devices/pci_8086_27d8_alsa_capture_0 ! autoaudiosink
You should now hear yourself with a small delay if you have a microphone connected to the specified sound device.

Synopsis

Element Information

plugin

halelements

author

Jürg Billeter <j@bitron.ch>

class

Source/Audio

Element Pads

name

src

direction

source

presence

always

details

ANY

Details

GstHalAudioSrc

typedef struct {
  GstBin parent;

  /* explicit pointers to stuff used */
  gchar *udi;
  GstElement *kid;
  GstPad *pad;
} GstHalAudioSrc;

Property Details

The "udi" property

  "udi"                      gchar*                : Read / Write

Unique Device Id.

Default value: NULL