Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Backend map. More...
#include <backend_map.h>
Public Member Functions | |
size_t | num_backends () const |
Get number of backends available. More... | |
IBackend & | nth_backend (size_t backend_index) const |
Get backend by index. More... | |
size_t | num_drivers () const |
Get number of drivers available. More... | |
const DriverInfo & | nth_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 BackendMap & | instance () |
Get instance. More... | |
Friends | |
class | core::Singleton< BackendMap > |
Backend map.
Definition at line 39 of file backend_map.h.
|
inlinestatic |
Get instance.
Definition at line 42 of file backend_map.h.
IBackend& roc::sndio::BackendMap::nth_backend | ( | size_t | backend_index | ) | const |
Get backend by index.
const DriverInfo& roc::sndio::BackendMap::nth_driver | ( | size_t | driver_index | ) | const |
Get driver by index.
size_t roc::sndio::BackendMap::num_backends | ( | ) | const |
Get number of backends available.
size_t roc::sndio::BackendMap::num_drivers | ( | ) | const |
Get number of drivers available.
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.