osssink
This element lets you output sound using the Open Sound System (OSS).
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).
Example pipelines
gst-launch-1.0 -v audiotestsrc ! audioconvert ! volume volume=0.1 ! osssink
will output a sine wave (continuous beep sound) to your sound card (with a very low volume as precaution).
gst-launch-1.0 -v filesrc location=music.ogg ! decodebin ! audioconvert ! audioresample ! osssink
will play an Ogg/Vorbis audio file and output it using the Open Sound System.
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSink ╰──GstAudioBaseSink ╰──GstAudioSink ╰──osssink
Factory details
Authors: – Erik Walthinsen
Classification: – Sink/Audio
Rank – secondary
Plugin – ossaudio
Package – GStreamer Good Plug-ins
Pad Templates
sink
audio/x-raw:
format: { S16LE, U16LE, S8, U8 }
layout: interleaved
rate: [ 1, 2147483647 ]
channels: 1
audio/x-raw:
format: { S16LE, U16LE, S8, U8 }
layout: interleaved
rate: [ 1, 2147483647 ]
channels: 2
channel-mask: 0x0000000000000003
Properties
device
“device” gchararray
OSS device (usually /dev/dspN)
Flags : Read / Write
Default value : /dev/dsp
The results of the search are