AudioConverter.updateConfig

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

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 gstaudio.audio_converter.AudioConverter.getConfig.

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

class AudioConverter
bool
updateConfig

Parameters

inRate int

input rate

outRate int

output rate

config gst.structure.Structure

a #GstStructure or null

Return Value

Type: bool

true when the new parameters could be set