arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AudioEncoderExt Class Referenceabstract
Inheritance diagram for AudioEncoderExt:
AudioEncoder AudioWriter AudioInfoSupport ADPCMEncoder

Public Member Functions

AudioInfo audioInfo ()
 provides the actual input AudioInfo
 
virtual AudioInfo audioInfoOut ()
 provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
 
virtual bool begin ()=0
 
virtual bool begin (AudioInfo info)
 
virtual int blockSize ()=0
 
virtual void end ()=0
 
virtual const char * mime ()=0
 Provides the mime type of the encoded result.
 
virtual operator bool ()=0
 
void setAudioInfo (AudioInfo from) override
 Defines the sample rate, number of channels and bits per sample.
 
virtual void setOutput (Print &out_stream)=0
 
virtual size_t write (const uint8_t *data, size_t len)=0
 

Protected Member Functions

void writeBlocking (Print *out, uint8_t *data, size_t len)
 

Protected Attributes

AudioInfo info
 

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