![]() |
![]() |
![]() |
GStreamer Good Plugins 1.0 Plugins Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
GObject +----GInitiallyUnowned +----GstObject +----GstElement +----GstBaseSrc +----GstPushSrc +----GstAudioBaseSrc +----GstAudioSrc +----GstPulseSrc
GstPulseSrc implements GstStreamVolume, GstImplementsInterface, GstMixer and GstPropertyProbe.
"device" gchar* : Read / Write "server" gchar* : Read / Write "device-name" gchar* : Read "stream-properties" GstStructure* : Read / Write "mute" gboolean : Read / Write "source-output-index" guint : Read "volume" gdouble : Read / Write "client-name" gchar* : Read / Write "current-device" gchar* : Read
This element captures audio from a PulseAudio sound server.
1 |
gst-launch-1.0 -v pulsesrc ! audioconvert ! vorbisenc ! oggmux ! filesink location=alsasrc.ogg |
name |
src |
direction |
source |
presence |
always |
details |
audio/x-raw, format=(string){ S16LE, S16BE, F32LE, F32BE, S32LE, S32BE, S24LE, S24BE, S24_32LE, S24_32BE, U8 }, layout=(string)interleaved, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 32 ] |
audio/x-alaw, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 32 ] | |
audio/x-mulaw, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 32 ] |
"device"
property "device" gchar* : Read / Write
The PulseAudio source device to connect to.
Default value: NULL
"server"
property "server" gchar* : Read / Write
The PulseAudio server to connect to.
Default value: NULL
"device-name"
property "device-name" gchar* : Read
Human-readable name of the sound device.
Default value: NULL
"stream-properties"
property "stream-properties" GstStructure* : Read / Write
List of pulseaudio stream properties. A list of defined properties can be found in the pulseaudio api docs.
Below is an example for registering as a music application to pulseaudio.
1 2 3 4 5 |
GstStructure *props; props = gst_structure_from_string ("props,media.role=music", NULL); g_object_set (pulse, "stream-properties", props, NULL); gst_structure_free (props); |
"mute"
property "mute" gboolean : Read / Write
Whether the stream is muted or not.
Default value: FALSE
"source-output-index"
property "source-output-index" guint : Read
The index of the PulseAudio source output corresponding to this element.
Default value: 4294967295
"volume"
property "volume" gdouble : Read / Write
The volume of the record stream.
Allowed values: [0,10]
Default value: 1
"client-name"
property "client-name" gchar* : Read / Write
The PulseAudio client name to use.
Default value: "gst-plugins-good-plugins-scan"