Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::audio::IFrameReader Class Referenceabstract

Frame reader interface. More...

#include <iframe_reader.h>

Inheritance diagram for roc::audio::IFrameReader:
Collaboration diagram for roc::audio::IFrameReader:

Public Member Functions

virtual bool read (Frame &frame)=0
 Read audio frame. More...
 
- Public Member Functions inherited from roc::core::ListNode
ListNodeDatalist_node_data () const
 Get list node data. More...
 

Detailed Description

Frame reader interface.

Definition at line 22 of file iframe_reader.h.

Member Function Documentation

◆ read()

virtual bool roc::audio::IFrameReader::read ( Frame frame)
pure virtual

Read audio frame.

Remarks
Frame buffer and its size should be set by caller. The reader should fill the entire buffer and should not resize it.
Returns
false if there is nothing to read anymore.

Implemented in roc::audio::Watchdog, roc::audio::ProfilingReader, roc::audio::Mixer, roc::audio::LatencyMonitor, roc::audio::Depacketizer, roc::audio::ChannelMapperReader, roc::audio::ResamplerReader, roc::audio::PoisonReader, roc::sndio::PulseaudioSource, roc::sndio::SoxSource, roc::pipeline::TranscoderSource, and roc::pipeline::ReceiverSource.


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