![]() |
![]() |
![]() |
GStreamer 1.0 Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <libs/controller/gstlfocontrolsource.h>
struct GstLFOControlSource;
enum GstLFOWaveform;
GstControlSource * gst_lfo_control_source_new (void
);
GObject +----GInitiallyUnowned +----GstObject +----GstControlSource +----GstLFOControlSource
"amplitude" gdouble : Read / Write "frequency" gdouble : Read / Write "offset" gdouble : Read / Write "timeshift" guint64 : Read / Write "waveform" GstLFOWaveform : Read / Write
GstLFOControlSource is a GstControlSource, that provides several periodic waveforms as control values. It supports all fundamental, numeric GValue types as property.
To use GstLFOControlSource get a new instance by calling gst_lfo_control_source_new()
,
bind it to a GParamSpec and set the relevant properties or use
gst_lfo_control_source_set_waveform.
All functions are MT-safe.
typedef enum { GST_LFO_WAVEFORM_SINE, GST_LFO_WAVEFORM_SQUARE, GST_LFO_WAVEFORM_SAW, GST_LFO_WAVEFORM_REVERSE_SAW, GST_LFO_WAVEFORM_TRIANGLE } GstLFOWaveform;
The various waveform modes available.
GstControlSource * gst_lfo_control_source_new (void
);
This returns a new, unbound GstLFOControlSource.
Returns : |
a new, unbound GstLFOControlSource. [transfer full] |
"amplitude"
property"amplitude" gdouble : Read / Write
Specifies the amplitude for the waveform of this GstLFOControlSource.
Allowed values: [0,1]
Default value: 1
"frequency"
property"frequency" gdouble : Read / Write
Specifies the frequency that should be used for the waveform of this GstLFOControlSource. It should be large enough so that the period is longer than one nanosecond.
Allowed values: >= 0
Default value: 1
"offset"
property"offset" gdouble : Read / Write
Specifies the value offset for the waveform of this GstLFOControlSource.
Allowed values: [0,1]
Default value: 1
"timeshift"
property "timeshift" guint64 : Read / Write
Specifies the timeshift to the right that should be used for the waveform of this GstLFOControlSource in nanoseconds.
To get a n nanosecond shift to the left use "(GST_SECOND / frequency) - n".
Default value: 0
"waveform"
property"waveform" GstLFOWaveform : Read / Write
Specifies the waveform that should be used for this GstLFOControlSource.
Default value: GST_LFO_WAVEFORM_SINE