12 #ifndef ROC_SNDIO_PULSEAUDIO_SINK_H_
13 #define ROC_SNDIO_PULSEAUDIO_SINK_H_
Sample specification. Describes sample rate and channels.
PulseAudio device. Base class for PulseAudio source and sink.
virtual DeviceState state() const
Get device state.
virtual core::nanoseconds_t latency() const
Get latency of the sink.
virtual bool has_clock() const
Check if the sink has own clock.
PulseaudioSink(const Config &config)
Initialize.
virtual void pause()
Pause reading.
virtual bool has_latency() const
Check if the sink supports latency reports.
virtual void write(audio::Frame &frame)
Write audio frame.
virtual bool resume()
Resume paused reading.
virtual audio::SampleSpec sample_spec() const
Get sample specification of the sink.
virtual DeviceType type() const
Get device type.
virtual bool restart()
Restart reading from the beginning.
int64_t nanoseconds_t
Nanoseconds.