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

Fanout. Duplicates audio stream to multiple output writers. More...

#include <fanout.h>

Inheritance diagram for roc::audio::Fanout:
Collaboration diagram for roc::audio::Fanout:

Public Member Functions

bool has_output (IFrameWriter &)
 Check if writer is already added. More...
 
void add_output (IFrameWriter &)
 Add output writer. More...
 
void remove_output (IFrameWriter &)
 Remove output writer. More...
 
virtual void write (Frame &frame)
 Write audio frame. More...
 
- Public Member Functions inherited from roc::core::ListNode< Tag >
ListDatalist_data () const
 Get pointer to internal data. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from roc::core::ListNode< Tag >
static ListNodelist_node (ListData *data)
 Get pointer to parent node from pointer to internal data. More...
 

Detailed Description

Fanout. Duplicates audio stream to multiple output writers.

Definition at line 26 of file fanout.h.

Member Function Documentation

◆ add_output()

void roc::audio::Fanout::add_output ( IFrameWriter )

Add output writer.

◆ has_output()

bool roc::audio::Fanout::has_output ( IFrameWriter )

Check if writer is already added.

◆ remove_output()

void roc::audio::Fanout::remove_output ( IFrameWriter )

Remove output writer.

◆ write()

virtual void roc::audio::Fanout::write ( Frame frame)
virtual

Write audio frame.

Remarks
Writes samples to every output writer.

Implements roc::audio::IFrameWriter.


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