Top | ![]() |
![]() |
![]() |
![]() |
This element reads data from an audio card using the ALSA API.
1 |
gst-launch-1.0 -v alsasrc ! queue ! audioconvert ! vorbisenc ! oggmux ! filesink location=alsasrc.ogg |
name |
src |
direction |
source |
presence |
always |
details |
audio/x-raw, format=(string){ S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }, layout=(string)interleaved, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ] |
struct GstAlsaSrc { GstAudioSrc src; gchar *device; snd_pcm_t *handle; snd_pcm_hw_params_t *hwparams; snd_pcm_sw_params_t *swparams; GstCaps *cached_caps; snd_pcm_access_t access; snd_pcm_format_t format; guint rate; guint channels; gint bpf; gboolean driver_timestamps; guint buffer_time; guint period_time; snd_pcm_uframes_t buffer_size; snd_pcm_uframes_t period_size; GMutex alsa_lock; };
Opaque data structure
“card-name”
property“card-name” gchar *
Human-readable name of the sound card.
Flags: Read
Default value: ""
“device”
property“device” gchar *
ALSA device, as defined in an asound configuration file.
Flags: Read / Write
Default value: "default"
“device-name”
property“device-name” gchar *
Human-readable name of the sound device.
Flags: Read
Default value: ""