Since 1.8Since 1.14convertConvenience wrapper around gst_audio_converter_samples(), which will
perform allocation of the output buffer based on the result from
gst_audio_converter_get_out_frames().
input data
true is the conversion could be performed.
Free a previously allocated convert instance.
Get the current configuration of convert.
a Gst.Structure that remains valid for as long as convert is valid or until gst_audio_converter_update_config() is called.
Calculate how many input frames are currently needed by convert to produce
out_frames of output frames.
number of output frames
the number of input frames
Get the maximum number of input frames that the converter would need before producing output.
the latency of convert as expressed in the number of frames.
Calculate how many output frames can be produced when in_frames input
frames are given to convert.
number of input frames
the number of output frames
Since 1.16is_Reset convert to the state it was when it was first created, clearing
any history it might currently have.
Since 1.12supports_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 gst_audio_converter_get_config().
Look at the GST_AUDIO_CONVERTER_OPT_* fields to check valid configuration
option and values.
input rate
output rate
a Gst.Structure or null
true when the new parameters could be set
Staticnew
This object is used to convert audio samples from one format to another. The object can perform conversion of:
audio format with optional dithering and noise shaping
audio samplerate
audio channels and channel layout
Since
1.8