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

Backend map. More...

#include <backend_map.h>

Inheritance diagram for roc::sndio::BackendMap:
Collaboration diagram for roc::sndio::BackendMap:

Public Member Functions

size_t num_backends () const
 Get number of backends available. More...
 
IBackendnth_backend (size_t backend_index) const
 Get backend by index. More...
 
size_t num_drivers () const
 Get number of drivers available. More...
 
const DriverInfonth_driver (size_t driver_index) const
 Get driver by index. More...
 
void set_frame_size (core::nanoseconds_t frame_length, const audio::SampleSpec &sample_spec)
 Set internal buffer size for all backends that need it. More...
 

Static Public Member Functions

static BackendMapinstance ()
 Get instance. More...
 

Friends

class core::Singleton< BackendMap >
 

Detailed Description

Backend map.

Definition at line 33 of file backend_map.h.

Member Function Documentation

◆ instance()

static BackendMap& roc::sndio::BackendMap::instance ( )
inlinestatic

Get instance.

Definition at line 36 of file backend_map.h.

◆ nth_backend()

IBackend& roc::sndio::BackendMap::nth_backend ( size_t  backend_index) const

Get backend by index.

◆ nth_driver()

const DriverInfo& roc::sndio::BackendMap::nth_driver ( size_t  driver_index) const

Get driver by index.

◆ num_backends()

size_t roc::sndio::BackendMap::num_backends ( ) const

Get number of backends available.

◆ num_drivers()

size_t roc::sndio::BackendMap::num_drivers ( ) const

Get number of drivers available.

◆ set_frame_size()

void roc::sndio::BackendMap::set_frame_size ( core::nanoseconds_t  frame_length,
const audio::SampleSpec sample_spec 
)

Set internal buffer size for all backends that need it.


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