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

PulseAudio sink,. More...

#include <pulseaudio_sink.h>

Inheritance diagram for roc::sndio::PulseaudioSink:
Collaboration diagram for roc::sndio::PulseaudioSink:

Public Member Functions

 PulseaudioSink (const Config &config)
 Initialize. More...
bool open (const char *device)
 Open output device. More...
virtual size_t sample_rate () const
 Get sample rate of the sink. More...
virtual bool has_clock () const
 Check if the sink has own clock. More...
virtual void write (audio::Frame &frame)
 Write audio frame. More...

Detailed Description

PulseAudio sink,.

Definition at line 28 of file pulseaudio_sink.h.

Constructor & Destructor Documentation

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


Member Function Documentation

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

Check if the sink has own clock.

Implements roc::sndio::ISink.

bool roc::sndio::PulseaudioSink::open ( const char *  device)

Open output device.

virtual size_t roc::sndio::PulseaudioSink::sample_rate ( ) const

Get sample rate of the sink.

Implements roc::sndio::ISink.

virtual void roc::sndio::PulseaudioSink::write ( audio::Frame frame)

Write audio frame.

Implements roc::audio::IWriter.

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