Free a previously allocated #GstAudioResampler resampler
.
Get the number of input frames that would currently be needed
to produce out_frames
from resampler
.
number of input frames
Get the maximum number of input samples that the resampler would need before producing output.
Get the number of output frames that would be currently available when
in_frames
are given to resampler
.
number of input frames
Perform resampling on in_frames
frames in in
and write out_frames
to out
.
In case the samples are interleaved, in
and out
must point to an
array with a single element pointing to a block of interleaved samples.
If non-interleaved samples are used, in
and out
must point to an
array with pointers to memory blocks, one for each channel.
in
may be %NULL, in which case in_frames
of silence samples are pushed
into the resampler.
This function always produces out_frames
of output and consumes in_frames
of
input. Use gst_audio_resampler_get_out_frames() and
gst_audio_resampler_get_in_frames() to make sure in_frames
and out_frames
are matching and in
and out
point to enough memory.
input samples
number of input frames
output samples
number of output frames
Reset resampler
to the state it was when it was first created, discarding
all sample history.
Update the resampler parameters for resampler
. This function should
not be called concurrently with any other function on resampler
.
When in_rate
or out_rate
is 0, its value is unchanged.
When options
is %NULL, the previously configured options are reused.
new input rate
new output rate
new options or %NULL
Make a new resampler.
a #GstAudioResamplerMethod
#GstAudioResamplerFlags
the #GstAudioFormat
the number of channels
input rate
output rate
extra options
Set the parameters for resampling from in_rate
to out_rate
using method
for quality
in options
.
a #GstAudioResamplerMethod
the quality
the input rate
the output rate
a #GstStructure
#GstAudioResampler is a structure which holds the information required to perform various kinds of resampling filtering.