Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::sndio Namespace Reference

Sound I/O. More...

Classes

class  BackendDispatcher
 Backend dispatcher. More...
 
class  BackendMap
 Backend map. More...
 
struct  Config
 Sink and source config. More...
 
struct  DriverInfo
 Driver information. More...
 
class  IBackend
 Backend interface. More...
 
class  ISink
 Sink interface. More...
 
class  ISource
 Source interface. More...
 
class  ITerminal
 Base interface for sinks and sources. More...
 
class  PulseaudioBackend
 Pulseaudio backend. More...
 
class  PulseaudioSink
 PulseAudio sink,. More...
 
class  Pump
 Audio pump. More...
 
class  SoxBackend
 SoX backend. More...
 
class  SoxSink
 SoX sink. More...
 
class  SoxSource
 SoX source. More...
 

Enumerations

enum  DriverType { DriverType_Invalid , DriverType_File , DriverType_Device }
 Driver type. More...
 
enum  DriverFlags { DriverFlag_IsDefault = (1 << 0) , DriverFlag_SupportsSource = (1 << 1) , DriverFlag_SupportsSink = (1 << 2) }
 Driver flags. More...
 
enum  TerminalType { Terminal_Sink , Terminal_Source }
 Terminal type. More...
 

Functions

const char * driver_type_to_str (DriverType type)
 Convert driver type to string.
 
bool print_supported (BackendDispatcher &backend_dispatcher, core::IAllocator &allocator)
 Print supported schemes and formats.
 
const char * terminal_type_to_str (TerminalType type)
 Convert terminal type to string.
 

Detailed Description

Sound I/O.

Enumeration Type Documentation

◆ DriverFlags

Driver flags.

Enumerator
DriverFlag_IsDefault 

Driver is used if no file or device is specified.

DriverFlag_SupportsSource 

Driver supports sources (input).

DriverFlag_SupportsSink 

Driver supports sinks (output).

Definition at line 39 of file driver.h.

◆ DriverType

Driver type.

Enumerator
DriverType_Invalid 

Invalid type.

DriverType_File 

Driver for audio files.

DriverType_Device 

Driver for audio devices.

Definition at line 27 of file driver.h.

◆ TerminalType

Terminal type.

Enumerator
Terminal_Sink 

Sink.

Terminal_Source 

Source.

Definition at line 19 of file terminal_type.h.

Function Documentation

◆ driver_type_to_str()

const char * roc::sndio::driver_type_to_str ( DriverType  type)

Convert driver type to string.

◆ print_supported()

bool roc::sndio::print_supported ( BackendDispatcher backend_dispatcher,
core::IAllocator allocator 
)

Print supported schemes and formats.

◆ terminal_type_to_str()

const char * roc::sndio::terminal_type_to_str ( TerminalType  type)

Convert terminal type to string.