Public Member Functions | Protected Attributes | List of all members
MultiOutput Class Reference

Replicates the output to multiple destinations. More...

#include <AudioIO.h>

Inheritance diagram for MultiOutput:
AudioOutput Print AudioInfoSupport AudioInfoSource

Public Member Functions

 MultiOutput ()=default
 Defines a MultiOutput with no final output: Define your outputs with add()
 MultiOutput (AudioOutput &out)
 Defines a MultiOutput with a single final outputs,.
 MultiOutput (AudioOutput &out1, AudioOutput &out2)
 Defines a MultiOutput with 2 final outputs.
 MultiOutput (AudioStream &out)
 MultiOutput (AudioStream &out1, AudioStream &out2)
 Defines a MultiOutput with 2 final outputs.
void add (AudioOutput &out)
 Add an additional AudioOutput output.
void add (AudioStream &stream)
 Add an AudioStream to the output.
void add (Print &print)
virtual AudioInfo audioInfo () override
virtual int availableForWrite () override
virtual bool begin ()
bool begin (AudioInfo info)
virtual void end ()
void flush ()
virtual bool isDeletable ()
 If true we need to release the related memory in the destructor.
 operator bool ()
void setAudioInfo (AudioInfo info)
virtual void setNotifyAudioChange (AudioInfoSupport &bi) override
virtual bool validate (AudioInfo &info)
size_t write (const uint8_t *buffer, size_t size)
size_t write (uint8_t ch)
virtual void writeSilence (size_t len)

Protected Attributes

AudioInfo cfg
bool is_active = false
AudioInfoSupportp_notify = nullptr
SingleBuffer< uint8_t > tmp {MAX_SINGLE_CHARS}
int tmpPos = 0
Vector< AudioOutput * > vector

Detailed Description

Replicates the output to multiple destinations.

Phil Schatzmann

Member Function Documentation

◆ writeSilence()

virtual void writeSilence ( size_t  len)

Writes n 0 values (= silence)


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