12 #ifndef ROC_PIPELINE_SENDER_LOOP_H_
13 #define ROC_PIPELINE_SENDER_LOOP_H_
141 virtual void pause();
142 virtual bool resume();
143 virtual bool restart();
146 virtual bool has_latency()
const;
147 virtual bool has_clock()
const;
152 virtual uint64_t tid_imp()
const;
157 bool task_create_slot_(
Task&);
158 bool task_delete_slot_(
Task&);
159 bool task_query_slot_(
Task&);
160 bool task_add_endpoint_(
Task&);
Sample specification. Describes sample rate and channels.
Optionally constructed object.
uint64_t ticks_t
Number of ticks.
Pipeline task scheduler interface. PipelineLoop uses this interface to schedule asynchronous work....
Base class for task-based pipelines.
Base class for pipeline tasks.
Sender endpoint sub-pipeline.
SenderSlotMetrics * slot_metrics_
Output for slot metrics.
address::Protocol proto_
Protocol.
SenderSessionMetrics * sess_metrics_
Output for session metrics.
bool(SenderLoop::* func_)(Task &)
Task implementation method.
address::SocketAddr address_
Destination address.
address::Interface iface_
Interface.
packet::IWriter * writer_
Destination writer.
SenderEndpoint * endpoint_
Endpoint.
Create endpoint on given interface of the slot.
EndpointHandle get_handle() const
Get created endpoint handle.
AddEndpoint(SlotHandle slot, address::Interface iface, address::Protocol proto, const address::SocketAddr &dest_address, packet::IWriter &dest_writer)
Set task parameters.
CreateSlot()
Set task parameters.
SlotHandle get_handle() const
Get created slot handle.
DeleteSlot(SlotHandle slot)
Set task parameters.
QuerySlot(SlotHandle slot, SenderSlotMetrics &slot_metrics, SenderSessionMetrics *sess_metrics)
Set task parameters.
Subclasses for specific tasks.
sndio::ISink & sink()
Get sender sink.
struct EndpointHandle * EndpointHandle
Opaque endpoint handle.
SenderLoop(IPipelineTaskScheduler &scheduler, const SenderConfig &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.
bool is_valid() const
Check if the pipeline was successfully constructed.
struct SlotHandle * SlotHandle
Opaque slot handle.
int64_t nanoseconds_t
Nanoseconds.
Base class for pipelines.
Metrics of sender session (connection to receiver).