Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::audio::ResamplerMap Class Reference

Factory class for IResampler objects, according to the ResamplerBackend input. More...

#include <resampler_map.h>

Inheritance diagram for roc::audio::ResamplerMap:
Collaboration diagram for roc::audio::ResamplerMap:

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< IResamplernew_resampler (core::IArena &arena, FrameFactory &frame_factory, const ResamplerConfig &config, const SampleSpec &in_spec, const SampleSpec &out_spec)
 Instantiate IResampler for given backend ID. More...
 

Static Public Member Functions

static ResamplerMapinstance ()
 Get instance. More...
 

Friends

class core::Singleton< ResamplerMap >
 

Detailed Description

Factory class for IResampler objects, according to the ResamplerBackend input.

Definition at line 30 of file resampler_map.h.

Member Function Documentation

◆ instance()

static ResamplerMap& roc::audio::ResamplerMap::instance ( )
inlinestatic

Get instance.

Definition at line 33 of file resampler_map.h.

◆ is_supported()

bool roc::audio::ResamplerMap::is_supported ( ResamplerBackend  backend_id) const

Check if given backend is supported.

◆ new_resampler()

core::SharedPtr<IResampler> roc::audio::ResamplerMap::new_resampler ( core::IArena arena,
FrameFactory frame_factory,
const ResamplerConfig config,
const SampleSpec in_spec,
const SampleSpec out_spec 
)

Instantiate IResampler for given backend ID.

◆ nth_backend()

ResamplerBackend roc::audio::ResamplerMap::nth_backend ( size_t  n) const

Get backend ID by number.

◆ num_backends()

size_t roc::audio::ResamplerMap::num_backends ( ) const

Get number of backends.


The documentation for this class was generated from the following file: