Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::sndio::BackendMap Class Reference

Backend map. More...

#include <roc_sndio/backend_map.h>

Inheritance diagram for roc::sndio::BackendMap:

Public Member Functions

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

Static Public Member Functions

static BackendMapinstance ()
 Get instance.
 

Friends

class core::Singleton< BackendMap >
 

Detailed Description

Backend map.

Definition at line 39 of file backend_map.h.

Member Function Documentation

◆ instance()

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

Get instance.

Definition at line 42 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.

Friends And Related Symbol Documentation

◆ core::Singleton< BackendMap >

friend class core::Singleton< BackendMap >
friend

Definition at line 59 of file backend_map.h.


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