Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Factory class for IResampler objects, according to the ResamplerBackend input. More...
#include <resampler_map.h>
Public Member Functions | |
size_t | num_backends () const |
Get number of backends. More... | |
ResamplerBackend | nth_backend (size_t n) const |
Get backend ID by number. More... | |
bool | is_supported (ResamplerBackend backend_id) const |
Check if given backend is supported. More... | |
core::SharedPtr< IResampler > | new_resampler (ResamplerBackend backend_id, core::IArena &arena, core::BufferFactory< sample_t > &buffer_factory, ResamplerProfile profile, const audio::SampleSpec &in_spec, const audio::SampleSpec &out_spec) |
Instantiate IResampler for given backend ID. More... | |
Static Public Member Functions | |
static ResamplerMap & | instance () |
Get instance. More... | |
Friends | |
class | core::Singleton< ResamplerMap > |
Factory class for IResampler objects, according to the ResamplerBackend input.
Definition at line 31 of file resampler_map.h.
|
inlinestatic |
Get instance.
Definition at line 34 of file resampler_map.h.
bool roc::audio::ResamplerMap::is_supported | ( | ResamplerBackend | backend_id | ) | const |
Check if given backend is supported.
core::SharedPtr<IResampler> roc::audio::ResamplerMap::new_resampler | ( | ResamplerBackend | backend_id, |
core::IArena & | arena, | ||
core::BufferFactory< sample_t > & | buffer_factory, | ||
ResamplerProfile | profile, | ||
const audio::SampleSpec & | in_spec, | ||
const audio::SampleSpec & | out_spec | ||
) |
Instantiate IResampler for given backend ID.
ResamplerBackend roc::audio::ResamplerMap::nth_backend | ( | size_t | n | ) | const |
Get backend ID by number.
size_t roc::audio::ResamplerMap::num_backends | ( | ) | const |
Get number of backends.