|
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. | |
| virtual DeviceType | type () const |
| Get device type. | |
| virtual DeviceState | state () const |
| Get device state. | |
| virtual void | pause () |
| Pause reading. | |
| virtual bool | resume () |
| Resume paused reading. | |
| virtual bool | restart () |
| Restart reading from the beginning. | |
| 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_latency () const |
| Check if the sink supports latency reports. | |
| virtual bool | has_clock () const |
| Check if the sink has own clock. | |
| virtual void | write (audio::Frame &frame) |
| Write audio frame. | |
Public Member Functions inherited from roc::core::ListNode | |
| ListNodeData * | list_node_data () const |
| Get list node data. | |
Public Member Functions inherited from roc::sndio::PulseaudioDevice | |
| bool | open (const char *device) |
| Open output device. | |
Additional Inherited Members | |
Protected Member Functions inherited from roc::sndio::PulseaudioDevice | |
| PulseaudioDevice (const Config &config, DeviceType device_type) | |
| Initialize. | |
| DeviceState | state () const |
| Get device state. | |
| void | pause () |
| Pause reading. | |
| bool | resume () |
| Resume paused reading. | |
| bool | restart () |
| Restart reading from the beginning. | |
| audio::SampleSpec | sample_spec () const |
| Get sample specification of the sink. | |
| core::nanoseconds_t | latency () const |
| Get latency of the sink. | |
| bool | request (audio::Frame &frame) |
| Process audio frame. | |
PulseAudio sink,.
Definition at line 22 of file pulseaudio_sink.h.
| roc::sndio::PulseaudioSink::PulseaudioSink | ( | const Config & | config | ) |
Initialize.
|
virtual |
Check if the sink has own clock.
Implements roc::sndio::IDevice.
|
virtual |
Check if the sink supports latency reports.
Implements roc::sndio::IDevice.
|
virtual |
Get latency of the sink.
Implements roc::sndio::IDevice.
|
virtual |
Pause reading.
Implements roc::sndio::IDevice.
|
virtual |
Restart reading from the beginning.
Implements roc::sndio::IDevice.
|
virtual |
Resume paused reading.
Implements roc::sndio::IDevice.
|
virtual |
Get sample specification of the sink.
Implements roc::sndio::IDevice.
|
virtual |
Get device state.
Implements roc::sndio::IDevice.
|
virtual |
Get device type.
Implements roc::sndio::IDevice.
|
virtual |
Write audio frame.
Implements roc::audio::IFrameWriter.