![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
PulseAudio device. Can be either source or sink depending on constructor parameter. More...
#include <roc_sndio/target_pulseaudio/roc_sndio/pulseaudio_device.h>

Public Member Functions | |
| PulseaudioDevice (const Config &config, DeviceType device_type) | |
| Initialize. | |
| bool | open (const char *device) |
| Open output device. | |
| virtual ISink * | to_sink () |
| Cast IDevice to ISink. | |
| virtual ISource * | to_source () |
| Cast IDevice to ISink. | |
| 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 device supports latency reports. | |
| virtual bool | has_clock () const |
| Check if the device has own clock. | |
| virtual void | reclock (core::nanoseconds_t timestamp) |
| Adjust source clock to match consumer clock. | |
| virtual void | write (audio::Frame &frame) |
| Write audio frame. | |
| virtual bool | read (audio::Frame &frame) |
| Read audio frame. | |
Public Member Functions inherited from roc::core::ListNode< Tag > | |
| ListData * | list_data () const |
| Get pointer to internal data. | |
Additional Inherited Members | |
Static Public Member Functions inherited from roc::core::ListNode< Tag > | |
| static ListNode * | list_node (ListData *data) |
| Get pointer to parent node from pointer to internal data. | |
PulseAudio device. Can be either source or sink depending on constructor parameter.
Definition at line 32 of file pulseaudio_device.h.
| roc::sndio::PulseaudioDevice::PulseaudioDevice | ( | const Config & | config, |
| DeviceType | device_type | ||
| ) |
Initialize.
|
virtual |
Check if the device has own clock.
Implements roc::sndio::IDevice.
|
virtual |
Check if the device supports latency reports.
Implements roc::sndio::IDevice.
|
virtual |
Get latency of the sink.
Implements roc::sndio::IDevice.
| bool roc::sndio::PulseaudioDevice::open | ( | const char * | device | ) |
Open output device.
|
virtual |
Pause reading.
Implements roc::sndio::IDevice.
|
virtual |
Read audio frame.
Implements roc::audio::IFrameReader.
|
virtual |
Adjust source clock to match consumer clock.
Implements roc::sndio::ISource.
|
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 |
Implements roc::sndio::IDevice.
|
virtual |
Implements roc::sndio::IDevice.
|
virtual |
Get device type.
Implements roc::sndio::IDevice.
|
virtual |
Write audio frame.
Implements roc::audio::IFrameWriter.