AudioResampler

#GstAudioResampler is a structure which holds the information required to perform various kinds of resampling filtering.

Members

Functions

getInFrames
size_t getInFrames(size_t outFrames)

Get the number of input frames that would currently be needed to produce out_frames from resampler.

getMaxLatency
size_t getMaxLatency()

Get the maximum number of input samples that the resampler would need before producing output.

getOutFrames
size_t getOutFrames(size_t inFrames)

Get the number of output frames that would be currently available when in_frames are given to resampler.

reset
void reset()

Reset resampler to the state it was when it was first created, discarding all sample history.

update
bool update(int inRate, int outRate, gst.structure.Structure options)

Update the resampler parameters for resampler. This function should not be called concurrently with any other function on resampler.

Static functions

new_
gstaudio.audio_resampler.AudioResampler new_(gstaudio.types.AudioResamplerMethod method, gstaudio.types.AudioResamplerFlags flags, gstaudio.types.AudioFormat format, int channels, int inRate, int outRate, gst.structure.Structure options)

Make a new resampler.

optionsSetQuality
void optionsSetQuality(gstaudio.types.AudioResamplerMethod method, uint quality, int inRate, int outRate, gst.structure.Structure options)

Set the parameters for resampling from in_rate to out_rate using method for quality in options.