|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Resamples audio stream with non-integer dynamically changing factor. More...
#include <resampler.h>
Public Member Functions | |
| Resampler (core::IAllocator &allocator, const ResamplerConfig &config, packet::channel_mask_t channels, size_t frame_size) | |
| Initialize. More... | |
| bool | valid () const |
| Check if object is successfully constructed. More... | |
| bool | set_scaling (float) |
| Set new resample factor. More... | |
| bool | resample_buff (Frame &out) |
| Resamples the whole output frame. More... | |
| void | renew_buffers (core::Slice< sample_t > &prev, core::Slice< sample_t > &cur, core::Slice< sample_t > &next) |
| Push new buffer on the front of the internal FIFO, which comprisesthree window_. More... | |
Resamples audio stream with non-integer dynamically changing factor.
Definition at line 48 of file resampler.h.
| roc::audio::Resampler::Resampler | ( | core::IAllocator & | allocator, |
| const ResamplerConfig & | config, | ||
| packet::channel_mask_t | channels, | ||
| size_t | frame_size | ||
| ) |
Initialize.
| void roc::audio::Resampler::renew_buffers | ( | core::Slice< sample_t > & | prev, |
| core::Slice< sample_t > & | cur, | ||
| core::Slice< sample_t > & | next | ||
| ) |
Push new buffer on the front of the internal FIFO, which comprisesthree window_.
| bool roc::audio::Resampler::resample_buff | ( | Frame & | out | ) |
Resamples the whole output frame.
| bool roc::audio::Resampler::set_scaling | ( | float | ) |
Set new resample factor.
| bool roc::audio::Resampler::valid | ( | ) | const |
Check if object is successfully constructed.