arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NullStream Class Reference

The Arduino Stream which provides silence and simulates a null device when used as audio target or audio source. More...

#include <BaseStream.h>

Inheritance diagram for NullStream:
BaseStream Stream Print

Public Member Functions

virtual int available () override
 
virtual int availableForWrite () override
 
virtual bool begin ()
 
virtual void end ()
 
virtual void flush () override
 
 operator bool ()
 
size_t readBytes (uint8_t *data, size_t len) override
 
size_t write (const uint8_t *data, size_t len) override
 
virtual size_t write (uint8_t ch) override
 

Protected Member Functions

void refillReadBuffer ()
 

Protected Attributes

int _timeout = 10
 
RingBuffer< uint8_t > tmp_in {0}
 
RingBuffer< uint8_t > tmp_out {0}
 

Detailed Description

The Arduino Stream which provides silence and simulates a null device when used as audio target or audio source.

Author
Phil Schatzmann

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