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

 BackendDispatcher (core::IArena &arena)
 Initialize. More...
 
ISinkopen_default_sink (const Config &config)
 Create and open default sink. More...
 
ISourceopen_default_source (const Config &config)
 Create and open default source. More...
 
ISinkopen_sink (const address::IoUri &uri, const char *force_format, const Config &config)
 Create and open a sink. More...
 
ISourceopen_source (const address::IoUri &uri, const char *force_format, const Config &config)
 Create and open a source. More...
 
ROC_ATTR_NODISCARD bool get_supported_schemes (core::StringList &result)
 Get all supported URI schemes. More...
 
ROC_ATTR_NODISCARD bool get_supported_formats (core::StringList &result)
 Get all supported file formats. More...
 

Detailed Description

Backend dispatcher.

Definition at line 32 of file backend_dispatcher.h.

Constructor & Destructor Documentation

◆ BackendDispatcher()

roc::sndio::BackendDispatcher::BackendDispatcher ( core::IArena arena)

Initialize.

Member Function Documentation

◆ get_supported_formats()

ROC_ATTR_NODISCARD bool roc::sndio::BackendDispatcher::get_supported_formats ( core::StringList result)

Get all supported file formats.

◆ get_supported_schemes()

ROC_ATTR_NODISCARD bool roc::sndio::BackendDispatcher::get_supported_schemes ( core::StringList result)

Get all supported URI schemes.

◆ open_default_sink()

ISink* roc::sndio::BackendDispatcher::open_default_sink ( const Config config)

Create and open default sink.

◆ open_default_source()

ISource* roc::sndio::BackendDispatcher::open_default_source ( const Config config)

Create and open default source.

◆ open_sink()

ISink* roc::sndio::BackendDispatcher::open_sink ( const address::IoUri uri,
const char *  force_format,
const Config config 
)

Create and open a sink.

◆ open_source()

ISource* roc::sndio::BackendDispatcher::open_source ( const address::IoUri uri,
const char *  force_format,
const Config config 
)

Create and open a source.


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