|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Backend dispatcher. More...
#include <backend_dispatcher.h>
Public Member Functions | |
| void | set_frame_size (size_t size) |
| Set internal buffer size for all backends that need it. More... | |
| ISink * | open_sink (core::IAllocator &allocator, const char *driver, const char *output, const Config &config) |
| Create and open a sink. More... | |
| ISource * | open_source (core::IAllocator &allocator, const char *driver, const char *input, const Config &config) |
| Create and open a source. More... | |
| bool | get_device_drivers (core::Array< DriverInfo > &arr) |
| Append supported drivers from all registered backends to array. More... | |
| bool | get_file_drivers (core::Array< DriverInfo > &arr) |
| Append supported file formats from all registered backends to array. More... | |
Static Public Member Functions | |
| static BackendDispatcher & | instance () |
| Get instance. More... | |
Friends | |
| class | core::Singleton< BackendDispatcher > |
Backend dispatcher.
Definition at line 28 of file backend_dispatcher.h.
| bool roc::sndio::BackendDispatcher::get_device_drivers | ( | core::Array< DriverInfo > & | arr | ) |
Append supported drivers from all registered backends to array.
| bool roc::sndio::BackendDispatcher::get_file_drivers | ( | core::Array< DriverInfo > & | arr | ) |
Append supported file formats from all registered backends to array.
|
inlinestatic |
Get instance.
Definition at line 31 of file backend_dispatcher.h.
| ISink * roc::sndio::BackendDispatcher::open_sink | ( | core::IAllocator & | allocator, |
| const char * | driver, | ||
| const char * | output, | ||
| const Config & | config | ||
| ) |
Create and open a sink.
| ISource * roc::sndio::BackendDispatcher::open_source | ( | core::IAllocator & | allocator, |
| const char * | driver, | ||
| const char * | input, | ||
| const Config & | config | ||
| ) |
Create and open a source.
| void roc::sndio::BackendDispatcher::set_frame_size | ( | size_t | size | ) |
Set internal buffer size for all backends that need it.
|
friend |
Definition at line 54 of file backend_dispatcher.h.