gstbtenvelope

gstbtenvelope — envelope base class

Synopsis

struct              GstBtEnvelope;
gdouble             gstbt_envelope_get                  (GstBtEnvelope *self,
                                                         guint offset);
gboolean            gstbt_envelope_is_running           (GstBtEnvelope *self);

Object Hierarchy

  GObject
   +----GstBtEnvelope
         +----GstBtEnvelopeADSR
         +----GstBtEnvelopeD

Properties

  "value"                    gdouble               : Read / Write

Description

Base class for envelopes.

Details

struct GstBtEnvelope

struct GstBtEnvelope {
  /* parameters */
  gdouble value;
};

Class instance data.

gdouble value;

current envelope value

gstbt_envelope_get ()

gdouble             gstbt_envelope_get                  (GstBtEnvelope *self,
                                                         guint offset);

Get the currect envelope level and add the time-offset for the next position.

self :

the envelope

offset :

the time offset to add

Returns :

the current level

gstbt_envelope_is_running ()

gboolean            gstbt_envelope_is_running           (GstBtEnvelope *self);

Checks if the end of the envelop has reached. Can be used to skip audio rendering once the end is reached.

self :

the envelope

Returns :

if the envelope is still running

Property Details

The "value" property

  "value"                    gdouble               : Read / Write

Current envelope value.

Allowed values: [0,1]

Default value: 0