gstaudiobasesrc

gstaudiobasesrc

Functions

Properties

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GstObject
            ╰── GstElement
                ╰── GstBaseSrc
                    ╰── GstPushSrc
                        ╰── GstAudioBaseSrc
                            ╰── GstAudioSrc

Includes

#include <gst/audio/gstaudiobasesrc.h>

Description

Functions

GST_AUDIO_BASE_SRC_CLOCK()

#define GST_AUDIO_BASE_SRC_CLOCK(obj)    (GST_AUDIO_BASE_SRC (obj)->clock)

GST_AUDIO_BASE_SRC_PAD()

#define GST_AUDIO_BASE_SRC_PAD(obj)      (GST_BASE_SRC (obj)->srcpad)

gst_audio_base_src_create_ringbuffer ()

GstAudioRingBuffer *
gst_audio_base_src_create_ringbuffer (GstAudioBaseSrc *src);

gst_audio_base_src_set_provide_clock ()

void
gst_audio_base_src_set_provide_clock (GstAudioBaseSrc *src,
                                      gboolean provide);

gst_audio_base_src_get_provide_clock ()

gboolean
gst_audio_base_src_get_provide_clock (GstAudioBaseSrc *src);

gst_audio_base_src_get_slave_method ()

GstAudioBaseSrcSlaveMethod
gst_audio_base_src_get_slave_method (GstAudioBaseSrc *src);

gst_audio_base_src_set_slave_method ()

void
gst_audio_base_src_set_slave_method (GstAudioBaseSrc *src,
                                     GstAudioBaseSrcSlaveMethod method);

Types and Values

struct GstAudioBaseSrc

struct GstAudioBaseSrc;

struct GstAudioBaseSrcClass

struct GstAudioBaseSrcClass {
  GstPushSrcClass      parent_class;

  /* subclass ringbuffer allocation */
  GstAudioRingBuffer* (*create_ringbuffer)  (GstAudioBaseSrc *src);
};

enum GstAudioBaseSrcSlaveMethod

Members

GST_AUDIO_BASE_SRC_SLAVE_RESAMPLE

   

GST_AUDIO_BASE_SRC_SLAVE_RETIMESTAMP

   

GST_AUDIO_BASE_SRC_SLAVE_SKEW

   

GST_AUDIO_BASE_SRC_SLAVE_NONE

   

Property Details

The “actual-buffer-time” property

  “actual-buffer-time”       gint64

Actual configured size of audio buffer in microseconds.

Flags: Read

Allowed values: >= -1

Default value: -1


The “actual-latency-time” property

  “actual-latency-time”      gint64

Actual configured audio latency in microseconds.

Flags: Read

Allowed values: >= -1

Default value: -1


The “buffer-time” property

  “buffer-time”              gint64

Size of audio buffer in microseconds. This is the maximum amount of data that is buffered in the device and the maximum latency that the source reports. This value might be ignored by the element if necessary; see "actual-buffer-time".

Flags: Read / Write

Allowed values: >= 1

Default value: 200000


The “latency-time” property

  “latency-time”             gint64

The minimum amount of data to read in each iteration in microseconds. This is the minimum latency that the source reports. This value might be ignored by the element if necessary; see "actual-latency-time".

Flags: Read / Write

Allowed values: >= 1

Default value: 10000


The “provide-clock” property

  “provide-clock”            gboolean

Provide a clock to be used as the global pipeline clock.

Flags: Read / Write

Default value: TRUE


The “slave-method” property

  “slave-method”             GstAudioBaseSrcSlaveMethod

Algorithm used to match the rate of the masterclock.

Flags: Read / Write

Default value: GST_AUDIO_BASE_SRC_SLAVE_SKEW