Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::pipeline::TranscoderSink Class Reference

Transcoder sink pipeline. More...

#include <transcoder_sink.h>

Inheritance diagram for roc::pipeline::TranscoderSink:
Collaboration diagram for roc::pipeline::TranscoderSink:

Public Member Functions

 TranscoderSink (const TranscoderConfig &config, audio::IFrameWriter *output_writer, core::BufferFactory< audio::sample_t > &buffer_factory, core::IArena &arena)
 Initialize. More...
 
bool is_valid ()
 Check if the pipeline was successfully constructed. More...
 
virtual sndio::DeviceType type () const
 Get device type. More...
 
virtual sndio::DeviceState state () const
 Get device state. More...
 
virtual void pause ()
 Pause reading. More...
 
virtual bool resume ()
 Resume paused reading. More...
 
virtual bool restart ()
 Restart reading from the beginning. More...
 
virtual audio::SampleSpec sample_spec () const
 Get sample specification of the sink. More...
 
virtual core::nanoseconds_t latency () const
 Get latency of the sink. More...
 
virtual bool has_latency () const
 Check if the sink supports latency reports. More...
 
virtual bool has_clock () const
 Check if the sink has own clock. More...
 
virtual void write (audio::Frame &frame)
 Write audio frame. More...
 
- Public Member Functions inherited from roc::core::ListNode
ListNodeDatalist_node_data () const
 Get list node data. More...
 

Detailed Description

Transcoder sink pipeline.

Remarks
  • input: frames
  • output: frames

Definition at line 35 of file transcoder_sink.h.

Constructor & Destructor Documentation

◆ TranscoderSink()

roc::pipeline::TranscoderSink::TranscoderSink ( const TranscoderConfig config,
audio::IFrameWriter output_writer,
core::BufferFactory< audio::sample_t > &  buffer_factory,
core::IArena arena 
)

Initialize.

Member Function Documentation

◆ has_clock()

virtual bool roc::pipeline::TranscoderSink::has_clock ( ) const
virtual

Check if the sink has own clock.

Implements roc::sndio::IDevice.

◆ has_latency()

virtual bool roc::pipeline::TranscoderSink::has_latency ( ) const
virtual

Check if the sink supports latency reports.

Implements roc::sndio::IDevice.

◆ is_valid()

bool roc::pipeline::TranscoderSink::is_valid ( )

Check if the pipeline was successfully constructed.

◆ latency()

virtual core::nanoseconds_t roc::pipeline::TranscoderSink::latency ( ) const
virtual

Get latency of the sink.

Implements roc::sndio::IDevice.

◆ pause()

virtual void roc::pipeline::TranscoderSink::pause ( )
virtual

Pause reading.

Implements roc::sndio::IDevice.

◆ restart()

virtual bool roc::pipeline::TranscoderSink::restart ( )
virtual

Restart reading from the beginning.

Implements roc::sndio::IDevice.

◆ resume()

virtual bool roc::pipeline::TranscoderSink::resume ( )
virtual

Resume paused reading.

Implements roc::sndio::IDevice.

◆ sample_spec()

virtual audio::SampleSpec roc::pipeline::TranscoderSink::sample_spec ( ) const
virtual

Get sample specification of the sink.

Implements roc::sndio::IDevice.

◆ state()

virtual sndio::DeviceState roc::pipeline::TranscoderSink::state ( ) const
virtual

Get device state.

Implements roc::sndio::IDevice.

◆ type()

virtual sndio::DeviceType roc::pipeline::TranscoderSink::type ( ) const
virtual

Get device type.

Implements roc::sndio::IDevice.

◆ write()

virtual void roc::pipeline::TranscoderSink::write ( audio::Frame frame)
virtual

Write audio frame.

Implements roc::audio::IFrameWriter.


The documentation for this class was generated from the following file: