12 #ifndef ROC_PIPELINE_RECEIVER_SOURCE_H_
13 #define ROC_PIPELINE_RECEIVER_SOURCE_H_
Sample specification. Describes sample rate and channels.
Intrusive doubly-linked list.
Base class for non-copyable objects.
Optionally constructed object.
Receiver source pipeline.
bool is_valid() const
Check if the pipeline was successfully constructed.
virtual void reclock(core::nanoseconds_t playback_time)
Adjust sessions clock to match consumer clock.
virtual void pause()
Pause reading.
virtual sndio::DeviceState state() const
Get current receiver state.
ReceiverSource(const ReceiverConfig &config, const rtp::FormatMap &format_map, packet::PacketFactory &packet_factory, core::BufferFactory< uint8_t > &byte_buffer_factory, core::BufferFactory< audio::sample_t > &sample_buffer_factory, core::IArena &arena)
Initialize.
virtual core::nanoseconds_t latency() const
Get latency of the source.
virtual bool restart()
Restart reading from the beginning.
virtual bool resume()
Resume paused reading.
void delete_slot(ReceiverSlot *slot)
Delete slot.
virtual bool has_clock() const
Check if the source has own clock.
virtual audio::SampleSpec sample_spec() const
Get sample specification of the source.
virtual bool has_latency() const
Check if the source supports latency reports.
virtual bool read(audio::Frame &)
Read audio frame.
size_t num_sessions() const
Get number of connected sessions.
virtual sndio::DeviceType type() const
Get device type.
ReceiverSlot * create_slot()
Create slot.
core::nanoseconds_t refresh(core::nanoseconds_t current_time)
Pull packets and refresh pipeline according to current time.
Receiver pipeline state. Thread-safe.
int64_t nanoseconds_t
Nanoseconds.
Optionally constructed object.
Receiver endpoint pipeline.
Commonly used types and functions.