mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +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
|
||||
* @short_description: LFO control source
|
||||
*
|
||||
* #GstLFOControlSource is a #GstControlSource, that provides several periodic waveforms
|
||||
* as control values. It supports all fundamental, numeric GValue types as property.
|
||||
* #GstLFOControlSource is a #GstControlSource, that provides several periodic
|
||||
* waveforms as control values.
|
||||
*
|
||||
* 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.
|
||||
* To use #GstLFOControlSource get a new instance by calling
|
||||
* gst_lfo_control_source_new(), bind it to a #GParamSpec and set the relevant
|
||||
* properties.
|
||||
*
|
||||
* All functions are MT-safe.
|
||||
*
|
||||
*/
|
||||
|
||||
#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,
|
||||
GST_LFO_WAVEFORM_SINE);
|
||||
self->priv->frequency = 1.0;
|
||||
self->priv->amplitude = 1.0;
|
||||
self->priv->period = GST_SECOND / self->priv->frequency;
|
||||
self->priv->timeshift = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue