oss4sink

oss4sink — Output to a sound card via OSS version 4

Synopsis

                    GstOss4Sink;

Object Hierarchy

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

Implemented Interfaces

GstOss4Sink implements GstStreamVolume and GstPropertyProbe.

Properties

  "device"                   gchar*                : Read / Write
  "device-name"              gchar*                : Read
  "mute"                     gboolean              : Read / Write
  "volume"                   gdouble               : Read / Write

Description

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

Details

GstOss4Sink

typedef struct _GstOss4Sink GstOss4Sink;

Property Details

The "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


The "device-name" property

  "device-name"              gchar*                : Read

Human-readable name of the sound device.

Default value: NULL


The "mute" property

  "mute"                     gboolean              : Read / Write

Mute state of this stream.

Default value: FALSE


The "volume" property

  "volume"                   gdouble               : Read / Write

Linear volume of this stream, 1.0=100%.

Allowed values: [0,10]

Default value: 1