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

PulseAudio source,. More...

#include <pulseaudio_source.h>

Inheritance diagram for roc::sndio::PulseaudioSource:
Collaboration diagram for roc::sndio::PulseaudioSource:

Public Member Functions

 PulseaudioSource (const Config &config)
 Initialize. More...
 
virtual DeviceType type () const
 Get device type. More...
 
virtual DeviceState state () const
 Get device state. More...
 
virtual void pause ()
 Pause reading. More...
 
virtual bool resume ()
 Resume paused reading. More...
 
virtual bool restart ()
 Restart reading from the beginning. More...
 
virtual audio::SampleSpec sample_spec () const
 Get sample specification of the source. More...
 
virtual core::nanoseconds_t latency () const
 Get latency of the source. More...
 
virtual bool has_latency () const
 Check if the source supports latency reports. More...
 
virtual bool has_clock () const
 Check if the source has own clock. More...
 
virtual void reclock (core::nanoseconds_t timestamp)
 Adjust source clock to match consumer clock. More...
 
virtual bool read (audio::Frame &frame)
 Read frame. More...
 
- Public Member Functions inherited from roc::core::ListNode
ListNodeDatalist_node_data () const
 Get list node data. More...
 
- Public Member Functions inherited from roc::sndio::PulseaudioDevice
bool open (const char *device)
 Open output device. More...
 

Additional Inherited Members

- Protected Member Functions inherited from roc::sndio::PulseaudioDevice
 PulseaudioDevice (const Config &config, DeviceType device_type)
 Initialize. More...
 
DeviceState state () const
 Get device state. More...
 
void pause ()
 Pause reading. More...
 
bool resume ()
 Resume paused reading. More...
 
bool restart ()
 Restart reading from the beginning. More...
 
audio::SampleSpec sample_spec () const
 Get sample specification of the sink. More...
 
core::nanoseconds_t latency () const
 Get latency of the sink. More...
 
bool request (audio::Frame &frame)
 Process audio frame. More...
 

Detailed Description

PulseAudio source,.

Definition at line 22 of file pulseaudio_source.h.

Constructor & Destructor Documentation

◆ PulseaudioSource()

roc::sndio::PulseaudioSource::PulseaudioSource ( const Config config)

Initialize.

Member Function Documentation

◆ has_clock()

virtual bool roc::sndio::PulseaudioSource::has_clock ( ) const
virtual

Check if the source has own clock.

Implements roc::sndio::IDevice.

◆ has_latency()

virtual bool roc::sndio::PulseaudioSource::has_latency ( ) const
virtual

Check if the source supports latency reports.

Implements roc::sndio::IDevice.

◆ latency()

virtual core::nanoseconds_t roc::sndio::PulseaudioSource::latency ( ) const
virtual

Get latency of the source.

Implements roc::sndio::IDevice.

◆ pause()

virtual void roc::sndio::PulseaudioSource::pause ( )
virtual

Pause reading.

Implements roc::sndio::IDevice.

◆ read()

virtual bool roc::sndio::PulseaudioSource::read ( audio::Frame frame)
virtual

Read frame.

Implements roc::audio::IFrameReader.

◆ reclock()

virtual void roc::sndio::PulseaudioSource::reclock ( core::nanoseconds_t  timestamp)
virtual

Adjust source clock to match consumer clock.

Implements roc::sndio::ISource.

◆ restart()

virtual bool roc::sndio::PulseaudioSource::restart ( )
virtual

Restart reading from the beginning.

Implements roc::sndio::IDevice.

◆ resume()

virtual bool roc::sndio::PulseaudioSource::resume ( )
virtual

Resume paused reading.

Implements roc::sndio::IDevice.

◆ sample_spec()

virtual audio::SampleSpec roc::sndio::PulseaudioSource::sample_spec ( ) const
virtual

Get sample specification of the source.

Implements roc::sndio::IDevice.

◆ state()

virtual DeviceState roc::sndio::PulseaudioSource::state ( ) const
virtual

Get device state.

Implements roc::sndio::IDevice.

◆ type()

virtual DeviceType roc::sndio::PulseaudioSource::type ( ) const
virtual

Get device type.

Implements roc::sndio::IDevice.


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