Resampler
Object Hierarchy:
Description:
[ CCode ( has_type_id = false ) ]
[ Compact ]
[ GIR ( name = "AudioResampler" ) ]
[ Version ( since = "1.10" ) ]
public class Resampler
Resampler is a structure which holds the information required to perform various kinds of resampling
filtering.
Content:
Static methods:
Creation methods:
Methods:
- public void free ()
Free a previously allocated Resampler
this.
- public size_t get_in_frames (size_t out_frames)
Get the number of input frames that would currently be needed to
produce out_frames
from this.
- public size_t get_max_latency ()
Get the maximum number of input samples that the resampler would need
before producing output.
- public size_t get_out_frames (size_t in_frames)
Get the number of output frames that would be currently available when
in_frames
are given to this.
- public void resample (void* @in, size_t in_frames, void* @out, size_t out_frames)
Perform resampling on in_frames
frames in in
and write out_frames
to out
.
- public void reset ()
Reset this to the state it was when
it was first created, discarding all sample history.
- public bool update (int in_rate, int out_rate, Structure options)
Update the resampler parameters for this
.