mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-30 07:42:32 +00:00
lfocontrolsource: init the amplitude to the default and update the docs
This commit is contained in:
parent
814bdde113
commit
1b076e995e
1 changed files with 6 additions and 6 deletions
|
@ -25,15 +25,14 @@
|
||||||
* SECTION:gstlfocontrolsource
|
* SECTION:gstlfocontrolsource
|
||||||
* @short_description: LFO control source
|
* @short_description: LFO control source
|
||||||
*
|
*
|
||||||
* #GstLFOControlSource is a #GstControlSource, that provides several periodic waveforms
|
* #GstLFOControlSource is a #GstControlSource, that provides several periodic
|
||||||
* as control values. It supports all fundamental, numeric GValue types as property.
|
* waveforms as control values.
|
||||||
*
|
*
|
||||||
* To use #GstLFOControlSource get a new instance by calling gst_lfo_control_source_new(),
|
* To use #GstLFOControlSource get a new instance by calling
|
||||||
* bind it to a #GParamSpec and set the relevant properties or use
|
* gst_lfo_control_source_new(), bind it to a #GParamSpec and set the relevant
|
||||||
* gst_lfo_control_source_set_waveform.
|
* properties.
|
||||||
*
|
*
|
||||||
* All functions are MT-safe.
|
* All functions are MT-safe.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
|
@ -453,6 +452,7 @@ gst_lfo_control_source_init (GstLFOControlSource * self)
|
||||||
self->priv->waveform = gst_lfo_control_source_set_waveform (self,
|
self->priv->waveform = gst_lfo_control_source_set_waveform (self,
|
||||||
GST_LFO_WAVEFORM_SINE);
|
GST_LFO_WAVEFORM_SINE);
|
||||||
self->priv->frequency = 1.0;
|
self->priv->frequency = 1.0;
|
||||||
|
self->priv->amplitude = 1.0;
|
||||||
self->priv->period = GST_SECOND / self->priv->frequency;
|
self->priv->period = GST_SECOND / self->priv->frequency;
|
||||||
self->priv->timeshift = 0;
|
self->priv->timeshift = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue