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

SoX backend. More...

#include <sox_backend.h>

Inheritance diagram for roc::sndio::SoxBackend:
Collaboration diagram for roc::sndio::SoxBackend:

Public Member Functions

void set_frame_size (size_t size)
 Set internal SoX frame size. More...
 
virtual bool probe (const char *driver, const char *inout, int flags)
 Check whether the backend can handle given input or output. More...
 
virtual ISinkopen_sink (core::IAllocator &allocator, const char *driver, const char *output, const Config &config)
 Create and open a sink. More...
 
virtual ISourceopen_source (core::IAllocator &allocator, const char *driver, const char *input, const Config &config)
 Create and open a source. More...
 
virtual bool get_drivers (core::Array< DriverInfo > &arr, int filter_flags)
 Append supported dirvers to the list. More...
 

Static Public Member Functions

static SoxBackendinstance ()
 Get instance. More...
 

Friends

class core::Singleton< SoxBackend >
 

Additional Inherited Members

- Public Types inherited from roc::sndio::IBackend
enum  FilterFlags { FilterSink = (1 << 0), FilterSource = (1 << 1), FilterFile = (1 << 2), FilterDevice = (1 << 3) }
 Probing flags. More...
 

Detailed Description

SoX backend.

Definition at line 26 of file sox_backend.h.

Member Function Documentation

virtual bool roc::sndio::SoxBackend::get_drivers ( core::Array< DriverInfo > &  arr,
int  filter_flags 
)
virtual

Append supported dirvers to the list.

Implements roc::sndio::IBackend.

static SoxBackend& roc::sndio::SoxBackend::instance ( )
inlinestatic

Get instance.

Definition at line 29 of file sox_backend.h.

virtual ISink* roc::sndio::SoxBackend::open_sink ( core::IAllocator allocator,
const char *  driver,
const char *  output,
const Config config 
)
virtual

Create and open a sink.

Implements roc::sndio::IBackend.

virtual ISource* roc::sndio::SoxBackend::open_source ( core::IAllocator allocator,
const char *  driver,
const char *  input,
const Config config 
)
virtual

Create and open a source.

Implements roc::sndio::IBackend.

virtual bool roc::sndio::SoxBackend::probe ( const char *  driver,
const char *  inout,
int  flags 
)
virtual

Check whether the backend can handle given input or output.

Implements roc::sndio::IBackend.

void roc::sndio::SoxBackend::set_frame_size ( size_t  size)

Set internal SoX frame size.

Remarks
Number of samples for all channels.

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