12 #ifndef ROC_AUDIO_DECIMATION_RESAMPLER_H_
13 #define ROC_AUDIO_DECIMATION_RESAMPLER_H_
65 virtual bool set_scaling(
size_t input_rate,
size_t output_rate,
float multiplier);
83 bool use_inner_resampler_;
virtual bool set_scaling(size_t input_rate, size_t output_rate, float multiplier)
Set new resample factor.
virtual void end_push_input()
Commit buffer with input data.
virtual bool is_valid() const
Check if object is successfully constructed.
virtual size_t pop_output(sample_t *out_data, size_t out_size)
Read samples from input frame and fill output frame.
DecimationResampler(const core::SharedPtr< IResampler > &inner_resampler, core::IArena &arena, FrameFactory &frame_factory, const SampleSpec &in_spec, const SampleSpec &out_spec)
Initialize.
virtual const core::Slice< sample_t > & begin_push_input()
Get buffer to be filled with input data.
virtual float n_left_to_process() const
How many samples were pushed but not processed yet.
Sample specification. Describes sample rate and channels.
IArena & arena() const
Get arena.
Base class for non-copyable objects.
Shared ownership intrusive pointer.
Audio resampler interface.
float sample_t
Raw audio sample.
Commonly used types and functions.