12#ifndef ROC_AUDIO_RESAMPLER_MAP_H_
13#define ROC_AUDIO_RESAMPLER_MAP_H_
53 enum { MaxBackends = 2 };
71 void add_backend_(
const Backend& backend);
74 Backend backends_[MaxBackends];
Factory class for IResampler objects, according to the ResamplerBackend input.
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 ResamplerMap & instance()
Get instance.
size_t num_backends() const
Get number of backends.
Sample stream specification. Defines sample rate and channel layout.
Memory allocator interface.
Base class for non-copyable objects.
static T & instance()
Get singleton instance.
Memory allocator interface.
Audio resampler interface.
ResamplerBackend
Resampler backends.
ResamplerProfile
Resampler parameters presets.
int64_t nanoseconds_t
Nanoseconds.
Commonly used types and functions.
Various units used in packets.