osssink

osssink — Output to a sound card via OSS

Synopsis

struct              GstOssSink;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstBaseSink
                     +----GstBaseAudioSink
                           +----GstAudioSink
                                 +----GstOssSink

Properties

  "device"                   gchar*                : Read / Write

Description

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 -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 -v filesrc location=music.ogg ! decodebin ! audioconvert ! audioresample ! osssink
will play an Ogg/Vorbis audio file and output it using the Open Sound System.

Synopsis

Element Information

plugin

ossaudio

author

Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim.taymans@chello.be>

class

Sink/Audio

Element Pads

name

sink

direction

sink

presence

always

details

audio/x-raw-int, endianness=(int){ 1234 }, signed=(boolean){ true, false }, width=(int)16, depth=(int)16, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2 ]

audio/x-raw-int, signed=(boolean){ true, false }, width=(int)8, depth=(int)8, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2 ]

Details

struct GstOssSink

struct GstOssSink;

Property Details

The "device" property

  "device"                   gchar*                : Read / Write

OSS device (usually /dev/dspN).

Default value: "/dev/dsp"