gstaudio.audio_resampler

Module for [AudioResampler] class

Types 1

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

Fields
GstAudioResampler * _cInstancePtr
bool owned
Methods
void * _cPtr() nothrow
size_t getInFrames(size_t outFrames) nothrowGet the number of input frames that would currently be needed to produce out_frames from resampler.
size_t getMaxLatency() nothrowGet 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) nothrowGet the number of output frames that would be currently available when in_frames are given to resampler.
void reset() nothrowReset 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) nothrowUpdate 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) static nothrowMake a new resampler.
void optionsSetQuality(gstaudio.types.AudioResamplerMethod method, uint quality, int inRate, int outRate, gst.structure.Structure options) static nothrowSet the parameters for resampling from in_rate to out_rate using method for quality in options.
Constructors
this(void * ptr, Flag!"Take" take)