volume

volume

Properties

gboolean mute Read / Write
gdouble volume Read / Write

Types and Values

struct GstVolume

Object Hierarchy

    GObject
    ╰── GstObject
        ╰── GstElement
            ╰── GstBaseTransform
                ╰── GstAudioFilter
                    ╰── GstVolume

Implemented Interfaces

GstVolume implements GstImplementsInterface, GstMixer and GstStreamVolume.

Description

The volume element changes the volume of the audio data.

Example launch line

1
gst-launch -v -m audiotestsrc ! volume volume=0.5 ! level ! fakesink silent=TRUE
This pipeline shows that the level of audiotestsrc has been halved (peak values are around -6 dB and RMS around -9 dB) compared to the same pipeline without the volume element.

Functions

Types and Values

struct GstVolume

struct GstVolume;

Opaque data structure.

Property Details

The “mute” property

  “mute”                     gboolean

mute channel.

Flags: Read / Write

Default value: FALSE


The “volume” property

  “volume”                   gdouble

volume factor, 1.0=100%.

Flags: Read / Write

Allowed values: [0,10]

Default value: 1