![]() |
![]() |
![]() |
GStreamer Good Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Properties |
"device" gchar* : Read / Write "device-name" gchar* : Read "mute" gboolean : Read / Write "volume" gdouble : Read / Write
This element lets you output sound using the Open Sound System (OSS) version 4.
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).
gst-launch -v audiotestsrc ! audioconvert ! volume volume=0.1 ! oss4sink
gst-launch -v filesrc location=music.ogg ! decodebin ! audioconvert ! audioresample ! oss4sink
name |
sink |
direction |
sink |
presence |
always |
details |
audio/x-alaw, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ] |
audio/x-mulaw, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ] | |
audio/x-raw-int, width=(int)32, depth=(int)32, signed=(boolean)true, endianness=(int)1234, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ] | |
audio/x-raw-int, width=(int)32, depth=(int){ 32, 24 }, signed=(boolean)true, endianness=(int)4321, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ] | |
audio/x-raw-int, width=(int){ 32, 24 }, depth=(int)24, signed=(boolean)true, endianness=(int)1234, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ] | |
audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean){ false, true }, endianness=(int){ 1234, 4321 }, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ] | |
audio/x-raw-int, width=(int)8, depth=(int)8, signed=(boolean){ true, false }, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ] |
struct GstOss4Sink { GstAudioSink audio_sink; gchar * device; /* NULL if none was set */ gchar * open_device; /* the device we opened */ gchar * device_name; /* set if the device is open */ gint fd; /* -1 if not open */ gint bytes_per_sample; gint mute_volume; GstCaps * probed_caps; GList * property_probe_list; };
"device"
property "device" gchar* : Read / Write
OSS4 device (e.g. /dev/oss/hdaudio0/pcm0 or /dev/dspN) (NULL = use first available playback device).
Default value: NULL
"device-name"
property "device-name" gchar* : Read
Human-readable name of the sound device.
Default value: NULL