volume

The volume element changes the volume of the audio data.

Example launch line

 gst-launch-1.0 -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.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseTransform
                    ╰──GstAudioFilter
                        ╰──volume

Implemented interfaces

Factory details

Authors: – Andy Wingo

Classification:Filter/Effect/Audio

Rank – none

Plugin – volume

Package – GStreamer Base Plug-ins

Pad Templates

sink

audio/x-raw:
         format: { F32LE, F64LE, S8, S16LE, S24LE, S32LE }
           rate: [ 1, 2147483647 ]
       channels: [ 1, 2147483647 ]
         layout: interleaved

Presencealways

Directionsink

Object typeGstPad


src

audio/x-raw:
         format: { F32LE, F64LE, S8, S16LE, S24LE, S32LE }
           rate: [ 1, 2147483647 ]
       channels: [ 1, 2147483647 ]
         layout: interleaved

Presencealways

Directionsrc

Object typeGstPad


Properties

mute

“mute” gboolean

mute channel

Flags : Read / Write

Default value : false


volume

“volume” gdouble

volume factor, 1.0=100%%

Flags : Read / Write

Default value : 1


volume-full-range

“volume-full-range” gdouble

The volume-full-range factor is a range from 0.0 to G_MAXDOUBLE so it is very inclusive, e.g. gain of +48 dB is very reasonable. This property allows setting higher value than the volume property.

Flags : Read / Write

Default value : 1

Since : 1.24


The results of the search are