arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AudioEncoder Class Referenceabstract

Encoding of PCM data. More...

#include <AudioCodecsBase.h>

Inheritance diagram for AudioEncoder:
AudioWriter AudioInfoSupport AACEncoderFDK ADPCMEncoderXQ APTXEncoder AudioEncoderExt BinaryContainerEncoder Codec2Encoder CodecNOP CopyEncoder EncoderBase64 EncoderBasic EncoderFloat EncoderL16 EncoderL8 FLACEncoder G722Encoder G7xxEncoder GGWaveEncoder GSMEncoder ILBCEncoder LC3Encoder MP3EncoderLAME OggContainerEncoder OpusAudioEncoder SBCEncoder WAVEncoder

Public Member Functions

 AudioEncoder (AudioEncoder const &)=delete
 
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 void end ()=0
 
virtual const char * mime ()=0
 Provides the mime type of the encoded result.
 
virtual operator bool ()=0
 
AudioEncoderoperator= (AudioEncoder const &)=delete
 
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
 

Detailed Description

Encoding of PCM data.

Author
Phil Schatzmann

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