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

Backend interface. More...

#include <roc_sndio/ibackend.h>

Inheritance diagram for roc::sndio::IBackend:

Public Member Functions

virtual void discover_drivers (core::Array< DriverInfo, MaxDrivers > &driver_list)=0
 Append supported drivers to the list.
 
virtual IDeviceopen_device (DeviceType device_type, DriverType driver_type, const char *driver, const char *path, const Config &config, core::IArena &arena)=0
 Create and open a sink or source.
 
virtual const char * name () const =0
 Returns name of backend.
 

Detailed Description

Backend interface.

Definition at line 29 of file ibackend.h.

Member Function Documentation

◆ discover_drivers()

virtual void roc::sndio::IBackend::discover_drivers ( core::Array< DriverInfo, MaxDrivers > &  driver_list)
pure virtual

Append supported drivers to the list.

Implemented in roc::sndio::PulseaudioBackend, roc::sndio::SndfileBackend, roc::sndio::SoxBackend, and roc::sndio::WavBackend.

◆ name()

virtual const char * roc::sndio::IBackend::name ( ) const
pure virtual

◆ open_device()

virtual IDevice * roc::sndio::IBackend::open_device ( DeviceType  device_type,
DriverType  driver_type,
const char *  driver,
const char *  path,
const Config config,
core::IArena arena 
)
pure virtual

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