update_config


Description:

public bool update_config (int in_rate, int out_rate, owned Structure? config)

Set in_rate, out_rate and config as extra configuration for this.

in_rate and out_rate specify the new sample rates of input and output formats. A value of 0 leaves the sample rate unchanged.

config can be null, in which case, the current configuration is not changed.

If the parameters in config can not be set exactly, this function returns false and will try to update as much state as possible. The new state can then be retrieved and refined with get_config.

Look at the `GST_AUDIO_CONVERTER_OPT_*` fields to check valid configuration option and values.

Parameters:

this

a Converter

in_rate

input rate

out_rate

output rate

config

a Structure or null

Returns:

true when the new parameters could be set