arduino-audio-tools
|
Encodes PCM data to the MP3 format and writes the result to a stream This is basically just a wrapper using https://github.com/pschatzmann/arduino-liblame. More...
#include <CodecMP3LAME.h>
Public Member Functions | |
MP3EncoderLAME (Print &out_stream) | |
AudioInfo | audioInfo () |
provides the actual input AudioInfo | |
AudioInfoLAME & | audioInfoExt () |
virtual AudioInfo | audioInfoOut () |
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream | |
bool | begin () |
virtual bool | begin (AudioInfo info) |
bool | begin (AudioInfoLAME from) |
AudioInfoLAME | defaultConfig () |
liblame::MP3EncoderLAME * | driver () |
void | end () |
const char * | mime () |
Provides the mime type of the encoded result. | |
virtual | operator bool () |
void | setAudioInfo (AudioInfo from) |
Defines the Audio Info. | |
void | setAudioInfo (AudioInfoLAME from) |
Defines the Audio Info. | |
void | setOutput (Print &out_stream) |
Defines the output stream. | |
size_t | write (const uint8_t *data, size_t len) |
Protected Member Functions | |
void | createEnc () |
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
liblame::MP3EncoderLAME * | enc =nullptr |
AudioInfo | info |
AudioInfoLAME | lame_info |
Print * | p_print =nullptr |
Encodes PCM data to the MP3 format and writes the result to a stream This is basically just a wrapper using https://github.com/pschatzmann/arduino-liblame.