diff --git a/docs/manual/advanced-dparams.xml b/docs/manual/advanced-dparams.xml index 548d489599..b7730af4c4 100644 --- a/docs/manual/advanced-dparams.xml +++ b/docs/manual/advanced-dparams.xml @@ -44,27 +44,18 @@ Setting up parameter control - The first step is to select the parameters that should be controlled. - This returns a controller object that is needed to further adjust the - behaviour. - - - controller = gst_object_control_properties(object, "prop1", "prop2",...); - - - Next we attach a control-source to each parameter. Lets use an - interpolation control-source: + Create a control-source. Lets use an interpolation control-source: csource = gst_interpolation_control_source_new (); - gst_interpolation_control_source_set_interpolation_mode(csource, GST_INTERPOLATE_LINEAR); + g_object_set (csource, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL); - Now we need to assign the control-source to the gobject property. One + Now we need to assign the control-source to the gobject property. One control source can only be assigned to one property. - gst_controller_set_control_source (controller, "prop1", csource); + gst_object_add_control_binding (object, gst_direct_control_binding_new (object, "prop1", csource)); This control-source takes new property values from a list of time-stamped @@ -80,8 +71,8 @@ different functions to specify the control-changes over time. - gst_interpolation_control_source_set (csource, 0 * GST_SECOND, value1); - gst_interpolation_control_source_set (csource, 1 * GST_SECOND, value2); + gst_timed_value_control_source_set ((GstTimedValueControlSource *)csource,0 * GST_SECOND, value1); + gst_timed_value_control_source_set ((GstTimedValueControlSource *)csource,1 * GST_SECOND, value2); Now everything is ready to play. One final note - the controller subsystem