arduino-audio-tools
|
Encoding of PCM data. More...
#include <AudioCodecsBase.h>
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 |
AudioEncoder & | operator= (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 |
Encoding of PCM data.