12 #ifndef ROC_PIPELINE_SENDER_SINK_H_
13 #define ROC_PIPELINE_SENDER_SINK_H_
Fanout. Duplicates audio stream to multiple output writers.
Sample specification. Describes sample rate and channels.
Intrusive doubly-linked list.
Base class for non-copyable objects.
Optionally constructed object.
virtual audio::SampleSpec sample_spec() const
Get sample specification of the sink.
SenderSink(const SenderSinkConfig &sink_config, const rtp::EncodingMap &encoding_map, core::IPool &packet_pool, core::IPool &packet_buffer_pool, core::IPool &frame_buffer_pool, core::IArena &arena)
Initialize.
virtual void pause()
Pause reading.
virtual sndio::DeviceState state() const
Get current receiver state.
virtual void write(audio::Frame &frame)
Write audio frame.
virtual bool restart()
Restart reading from the beginning.
virtual sndio::ISink * to_sink()
Cast IDevice to ISink.
virtual core::nanoseconds_t latency() const
Get latency of the sink.
virtual bool has_clock() const
Check if the sink has own clock.
virtual bool has_latency() const
Check if the sink supports latency reports.
virtual sndio::DeviceType type() const
Get device type.
core::nanoseconds_t refresh(core::nanoseconds_t current_time)
Refresh pipeline according to current time.
virtual bool resume()
Resume paused reading.
size_t num_sessions() const
Get number of active sessions.
void delete_slot(SenderSlot *slot)
Delete slot.
bool is_valid() const
Check if the pipeline was successfully constructed.
SenderSlot * create_slot(const SenderSlotConfig &slot_config)
Create slot.
virtual sndio::ISource * to_source()
Cast IDevice to ISink.
RTP encoding map. Thread-safe. Returned encodings are immutable and can be safely used from any threa...
int64_t nanoseconds_t
Nanoseconds.
Optionally constructed object.
Sender endpoint pipeline.
Parameters of sender sink and sender session.
Parameters of sender slot.