gststreamvolume

gststreamvolume

Functions

Properties

gboolean mute Read / Write
gdouble volume Read / Write

Types and Values

Object Hierarchy

    GInterface
    ╰── GstStreamVolume

Prerequisites

GstStreamVolume requires GObject.

Includes

#include <gst/audio/streamvolume.h>

Description

Functions

gst_stream_volume_get_volume ()

gdouble
gst_stream_volume_get_volume (GstStreamVolume *volume,
                              GstStreamVolumeFormat format);

gst_stream_volume_set_volume ()

void
gst_stream_volume_set_volume (GstStreamVolume *volume,
                              GstStreamVolumeFormat format,
                              gdouble val);

gst_stream_volume_get_mute ()

gboolean
gst_stream_volume_get_mute (GstStreamVolume *volume);

gst_stream_volume_set_mute ()

void
gst_stream_volume_set_mute (GstStreamVolume *volume,
                            gboolean mute);

gst_stream_volume_convert_volume ()

gdouble
gst_stream_volume_convert_volume (GstStreamVolumeFormat from,
                                  GstStreamVolumeFormat to,
                                  gdouble val);

Types and Values

GstStreamVolume

typedef struct _GstStreamVolume GstStreamVolume;

enum GstStreamVolumeFormat

Members

GST_STREAM_VOLUME_FORMAT_LINEAR

   

GST_STREAM_VOLUME_FORMAT_CUBIC

   

GST_STREAM_VOLUME_FORMAT_DB

   

Property Details

The “mute” property

  “mute”                     gboolean

Mute the audio channel without changing the volume.

Flags: Read / Write

Default value: FALSE


The “volume” property

  “volume”                   gdouble

Linear volume factor, 1.0=100%.

Flags: Read / Write

Allowed values: >= 0

Default value: 1