oss4sink

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).

Example pipelines

 gst-launch-1.0 -v audiotestsrc ! audioconvert ! volume volume=0.1 ! oss4sink

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 ! oss4sink

will play an Ogg/Vorbis audio file and output it using the Open Sound System version 4.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSink
                    ╰──GstAudioBaseSink
                        ╰──GstAudioSink
                            ╰──oss4sink

Implemented interfaces

Factory details

Authors: – Tim-Philipp Müller

Classification:Sink/Audio

Rank – secondary + 1

Plugin – oss4

Package – GStreamer Good Plug-ins

Pad Templates

sink

audio/x-alaw:
           rate: [ 1, 192000 ]
       channels: [ 1, 4096 ]
audio/x-mulaw:
           rate: [ 1, 192000 ]
       channels: [ 1, 4096 ]
audio/x-raw:
         format: { S32LE, S32BE, S24_32LE, S24_32BE, S24LE, S16LE, S16BE, U16LE, U16BE, S8, U8 }
         layout: interleaved
           rate: [ 1, 192000 ]
       channels: [ 1, 4096 ]

Presencealways

Directionsink

Object typeGstPad


Properties

device

“device” gchararray

OSS4 device (e.g. /dev/oss/hdaudio0/pcm0 or /dev/dspN) (NULL = use first available playback device)

Flags : Read / Write

Default value : NULL


device-name

“device-name” gchararray

Human-readable name of the sound device

Flags : Read

Default value : NULL


mute

“mute” gboolean

Mute state of this stream

Flags : Read / Write

Default value : false


volume

“volume” gdouble

Linear volume of this stream, 1.0=100%%

Flags : Read / Write

Default value : 1


The results of the search are