arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MP3EncoderLAME Class Reference

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>

Inheritance diagram for MP3EncoderLAME:
AudioEncoder AudioWriter AudioInfoSupport

Public Member Functions

 MP3EncoderLAME (Print &out_stream)
 
AudioInfo audioInfo ()
 provides the actual input AudioInfo
 
AudioInfoLAMEaudioInfoExt ()
 
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 void *in_ptr, size_t in_size)
 

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
 
Printp_print =nullptr
 

Detailed Description

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.

Author
Phil Schatzmann

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