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

Pulseaudio backend. More...

#include <pulseaudio_backend.h>

Inheritance diagram for roc::sndio::PulseaudioBackend:
Collaboration diagram for roc::sndio::PulseaudioBackend:

Public Member Functions

virtual bool probe (const char *driver, const char *inout, int filter_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 PulseaudioBackendinstance ()
 Get instance. More...
 

Friends

class core::Singleton< PulseaudioBackend >
 

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

Pulseaudio backend.

Definition at line 24 of file pulseaudio_backend.h.

Member Function Documentation

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

Append supported dirvers to the list.

Implements roc::sndio::IBackend.

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

Get instance.

Definition at line 27 of file pulseaudio_backend.h.

virtual ISink* roc::sndio::PulseaudioBackend::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::PulseaudioBackend::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::PulseaudioBackend::probe ( const char *  driver,
const char *  inout,
int  filter_flags 
)
virtual

Check whether the backend can handle given input or output.

Implements roc::sndio::IBackend.


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