|
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. | |
| ResamplerBackend | nth_backend (size_t n) const |
| Get backend ID by number. | |
| IResampler * | new_resampler (ResamplerBackend resampler_backend, core::IAllocator &allocator, core::BufferFactory< sample_t > &buffer_factory, ResamplerProfile profile, core::nanoseconds_t frame_length, const audio::SampleSpec &sample_spec) |
| Method to instantiate and return a pointer to a IResampler object. | |
Static Public Member Functions | |
| static ResamplerMap & | instance () |
| Get instance. | |
Friends | |
| class | core::Singleton< ResamplerMap > |
Factory class for IResampler objects, according to the ResamplerBackend input.
Definition at line 29 of file resampler_map.h.
|
inlinestatic |
Get instance.
Definition at line 32 of file resampler_map.h.
| IResampler * roc::audio::ResamplerMap::new_resampler | ( | ResamplerBackend | resampler_backend, |
| core::IAllocator & | allocator, | ||
| core::BufferFactory< sample_t > & | buffer_factory, | ||
| ResamplerProfile | profile, | ||
| core::nanoseconds_t | frame_length, | ||
| const audio::SampleSpec & | sample_spec | ||
| ) |
Method to instantiate and return a pointer to a IResampler object.
| 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.
|
friend |
Definition at line 43 of file resampler_map.h.