arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
OutputTest Class Reference

Print sink that logs the length and a hex preview (first/last 10 bytes) of every write() call instead of actually outputting the data - useful for verifying that video/audio codecs and containers are feeding plausible data without needing a real display or audio device. More...

#include <OutputTest.h>

Inheritance diagram for OutputTest:
Print

Public Member Functions

 OutputTest ()=default
 
virtual int availableForWrite ()
 
virtual void flush ()
 
size_t write (const uint8_t *buffer, size_t size) override
 
size_t write (uint8_t c) override
 

Protected Attributes

int _timeout = 10
 

Detailed Description

Print sink that logs the length and a hex preview (first/last 10 bytes) of every write() call instead of actually outputting the data - useful for verifying that video/audio codecs and containers are feeding plausible data without needing a real display or audio device.

Constructor & Destructor Documentation

◆ OutputTest()

OutputTest ( )
default

Member Function Documentation

◆ availableForWrite()

virtual int availableForWrite ( )
inlinevirtualinherited

◆ flush()

virtual void flush ( )
inlinevirtualinherited

◆ write() [1/2]

size_t write ( const uint8_t *  buffer,
size_t  size 
)
inlineoverridevirtual

Reimplemented from Print.

◆ write() [2/2]

size_t write ( uint8_t  c)
inlineoverride

Member Data Documentation

◆ _timeout

int _timeout = 10
protectedinherited

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