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

Backend dispatcher. More...

#include <backend_dispatcher.h>

Inheritance diagram for roc::sndio::BackendDispatcher:
Collaboration diagram for roc::sndio::BackendDispatcher:

Public Member Functions

void set_frame_size (size_t size)
 Set internal buffer size for all backends that need it. More...
 
ISinkopen_sink (core::IAllocator &allocator, const char *driver, const char *output, const Config &config)
 Create and open a sink. More...
 
ISourceopen_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 BackendDispatcherinstance ()
 Get instance. More...
 

Friends

class core::Singleton< BackendDispatcher >
 

Detailed Description

Backend dispatcher.

Definition at line 28 of file backend_dispatcher.h.

Member Function Documentation

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.

static BackendDispatcher& roc::sndio::BackendDispatcher::instance ( )
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.


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