gstaudio.audio_resampler
Module for [AudioResampler] class
class AudioResampler
Types 1
classAudioResampler
#GstAudioResampler is a structure which holds the information required to perform various kinds of resampling filtering.
Methods
void * _cPtr()size_t getInFrames(size_t outFrames)Get the number of input frames that would currently be needed to produce out_frames from resampler.size_t getMaxLatency()Get the maximum number of input samples that the resampler would need before producing output. Returns: the latency of resampler as expressed in the number of frames.size_t getOutFrames(size_t inFrames)Get the number of output frames that would be currently available when in_frames are given to resampler.void reset()Reset resampler to the state it was when it was first created, discarding all sample history.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.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.void optionsSetQuality(gstaudio.types.AudioResamplerMethod method, uint quality, int inRate, int outRate, gst.structure.Structure options)Set the parameters for resampling from inrate to outrate using method for quality in options.