![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
PulseAudio sink,. More...
#include <pulseaudio_sink.h>
Public Member Functions | |
PulseaudioSink (const Config &config) | |
Initialize. | |
bool | open (const char *device) |
Open output device. | |
virtual audio::SampleSpec | sample_spec () const |
Get sample specification of the sink. | |
virtual core::nanoseconds_t | latency () const |
Get latency of the sink. | |
virtual bool | has_clock () const |
Check if the sink has own clock. | |
virtual void | write (audio::Frame &frame) |
Write audio frame. | |
virtual audio::SampleSpec | sample_spec () const =0 |
Get sample specification of the terminal. | |
virtual core::nanoseconds_t | latency () const =0 |
Get latency of the terminal. | |
virtual bool | has_clock () const =0 |
Check if the terminal has own clock. | |
virtual void | write (Frame &frame)=0 |
Write audio frame. | |
![]() | |
ListNodeData * | list_node_data () const |
Get list node data. | |
PulseAudio sink,.
Definition at line 28 of file pulseaudio_sink.h.
roc::sndio::PulseaudioSink::PulseaudioSink | ( | const Config & | config | ) |
Initialize.
|
virtual |
Check if the sink has own clock.
Implements roc::sndio::ITerminal.
|
virtual |
Get latency of the sink.
Implements roc::sndio::ITerminal.
bool roc::sndio::PulseaudioSink::open | ( | const char * | device | ) |
Open output device.
|
virtual |
Get sample specification of the sink.
Implements roc::sndio::ITerminal.
|
virtual |
Write audio frame.
Implements roc::audio::IFrameWriter.