diff -r 567bb019e3e3 -r 7e817e7e631c gstreamer_core/libs/gst/controller/gstlfocontrolsource.c --- a/gstreamer_core/libs/gst/controller/gstlfocontrolsource.c Tue Aug 31 15:30:33 2010 +0300 +++ b/gstreamer_core/libs/gst/controller/gstlfocontrolsource.c Wed Sep 01 12:16:41 2010 +0100 @@ -77,7 +77,7 @@ gdouble off = convert (g_value_get_##type (&self->priv->offset)); \ GstClockTime pos = _calculate_pos (timestamp, self->priv->timeshift, self->priv->period); \ \ - ret = sin (2.0 * M_PI * (self->priv->frequency / GST_SECOND) * gst_guint64_to_gdouble (pos)); \ + ret = sin (2.0 * M_PI * (self->priv->frequency / GST_SECOND) * gst_util_guint64_to_gdouble (pos)); \ ret *= amp; \ ret += off; \ \ @@ -123,7 +123,7 @@ DEFINE_SINE (ulong, TRUE, EMPTY); DEFINE_SINE (int64, TRUE, EMPTY); -DEFINE_SINE (uint64, TRUE, gst_guint64_to_gdouble); +DEFINE_SINE (uint64, TRUE, gst_util_guint64_to_gdouble); DEFINE_SINE (float, FALSE, EMPTY); DEFINE_SINE (double, FALSE, EMPTY); @@ -209,7 +209,7 @@ DEFINE_SQUARE (ulong, TRUE, EMPTY); DEFINE_SQUARE (int64, TRUE, EMPTY); -DEFINE_SQUARE (uint64, TRUE, gst_guint64_to_gdouble); +DEFINE_SQUARE (uint64, TRUE, gst_util_guint64_to_gdouble); DEFINE_SQUARE (float, FALSE, EMPTY); DEFINE_SQUARE (double, FALSE, EMPTY); @@ -245,7 +245,7 @@ GstClockTime pos = _calculate_pos (timestamp, self->priv->timeshift, period); \ gdouble ret; \ \ - ret = - ((gst_guint64_to_gdouble (pos) - gst_guint64_to_gdouble (period) / 2.0) * ((2.0 * amp) / gst_guint64_to_gdouble (period)));\ + ret = - ((gst_util_guint64_to_gdouble (pos) - gst_util_guint64_to_gdouble (period) / 2.0) * ((2.0 * amp) / gst_util_guint64_to_gdouble (period)));\ \ ret += off; \ \ @@ -292,7 +292,7 @@ DEFINE_SAW (ulong, TRUE, EMPTY); DEFINE_SAW (int64, TRUE, EMPTY); -DEFINE_SAW (uint64, TRUE, gst_guint64_to_gdouble); +DEFINE_SAW (uint64, TRUE, gst_util_guint64_to_gdouble); DEFINE_SAW (float, FALSE, EMPTY); DEFINE_SAW (double, FALSE, EMPTY); @@ -328,7 +328,7 @@ GstClockTime pos = _calculate_pos (timestamp, self->priv->timeshift, period); \ gdouble ret; \ \ - ret = ((gst_guint64_to_gdouble (pos) - gst_guint64_to_gdouble (period) / 2.0) * ((2.0 * amp) / gst_guint64_to_gdouble (period)));\ + ret = ((gst_util_guint64_to_gdouble (pos) - gst_util_guint64_to_gdouble (period) / 2.0) * ((2.0 * amp) / gst_util_guint64_to_gdouble (period)));\ \ ret += off; \ \ @@ -375,7 +375,7 @@ DEFINE_RSAW (ulong, TRUE, EMPTY); DEFINE_RSAW (int64, TRUE, EMPTY); -DEFINE_RSAW (uint64, TRUE, gst_guint64_to_gdouble); +DEFINE_RSAW (uint64, TRUE, gst_util_guint64_to_gdouble); DEFINE_RSAW (float, FALSE, EMPTY); DEFINE_RSAW (double, FALSE, EMPTY); @@ -411,12 +411,12 @@ GstClockTime pos = _calculate_pos (timestamp, self->priv->timeshift, period); \ gdouble ret; \ \ - if (gst_guint64_to_gdouble (pos) <= gst_guint64_to_gdouble (period) / 4.0) \ - ret = gst_guint64_to_gdouble (pos) * ((4.0 * amp) / gst_guint64_to_gdouble (period)); \ - else if (gst_guint64_to_gdouble (pos) <= (3.0 * gst_guint64_to_gdouble (period)) / 4.0) \ - ret = -(gst_guint64_to_gdouble (pos) - gst_guint64_to_gdouble (period) / 2.0) * ((4.0 * amp) / gst_guint64_to_gdouble (period)); \ + if (gst_util_guint64_to_gdouble (pos) <= gst_util_guint64_to_gdouble (period) / 4.0) \ + ret = gst_util_guint64_to_gdouble (pos) * ((4.0 * amp) / gst_util_guint64_to_gdouble (period)); \ + else if (gst_util_guint64_to_gdouble (pos) <= (3.0 * gst_util_guint64_to_gdouble (period)) / 4.0) \ + ret = -(gst_util_guint64_to_gdouble (pos) - gst_util_guint64_to_gdouble (period) / 2.0) * ((4.0 * amp) / gst_util_guint64_to_gdouble (period)); \ else \ - ret = gst_guint64_to_gdouble (period) - gst_guint64_to_gdouble (pos) * ((4.0 * amp) / gst_guint64_to_gdouble (period)); \ + ret = gst_util_guint64_to_gdouble (period) - gst_util_guint64_to_gdouble (pos) * ((4.0 * amp) / gst_util_guint64_to_gdouble (period)); \ \ ret += off; \ \ @@ -463,7 +463,7 @@ DEFINE_TRIANGLE (ulong, TRUE, EMPTY); DEFINE_TRIANGLE (int64, TRUE, EMPTY); -DEFINE_TRIANGLE (uint64, TRUE, gst_guint64_to_gdouble); +DEFINE_TRIANGLE (uint64, TRUE, gst_util_guint64_to_gdouble); DEFINE_TRIANGLE (float, FALSE, EMPTY); DEFINE_TRIANGLE (double, FALSE, EMPTY); @@ -1038,8 +1038,7 @@ **/ g_object_class_install_property (gobject_class, PROP_WAVEFORM, g_param_spec_enum ("waveform", "Waveform", "Waveform", - GST_TYPE_LFO_WAVEFORM, GST_LFO_WAVEFORM_SINE, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + GST_TYPE_LFO_WAVEFORM, GST_LFO_WAVEFORM_SINE, G_PARAM_READWRITE)); /** * GstLFOControlSource:frequency @@ -1052,7 +1051,7 @@ g_object_class_install_property (gobject_class, PROP_FREQUENCY, g_param_spec_double ("frequency", "Frequency", "Frequency of the waveform", 0.0, G_MAXDOUBLE, 1.0, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_PARAM_READWRITE)); /** * GstLFOControlSource:timeshift @@ -1067,7 +1066,7 @@ g_object_class_install_property (gobject_class, PROP_TIMESHIFT, g_param_spec_uint64 ("timeshift", "Timeshift", "Timeshift of the waveform to the right", 0, G_MAXUINT64, 0, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_PARAM_READWRITE)); /** * GstLFOControlSource:amplitude @@ -1079,7 +1078,7 @@ **/ g_object_class_install_property (gobject_class, PROP_AMPLITUDE, g_param_spec_boxed ("amplitude", "Amplitude", "Amplitude of the waveform", - G_TYPE_VALUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_TYPE_VALUE, G_PARAM_READWRITE)); /** * GstLFOControlSource:offset @@ -1091,5 +1090,5 @@ **/ g_object_class_install_property (gobject_class, PROP_OFFSET, g_param_spec_boxed ("offset", "Offset", "Offset of the waveform", - G_TYPE_VALUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_TYPE_VALUE, G_PARAM_READWRITE)); }