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

Public Member Functions

 MP3EncoderLAME (Print &out_stream)
 
AudioInfoLAMEaudioInfo ()
 
void begin ()
 
virtual void begin (AudioInfo info)
 
void begin (AudioInfoLAME info)
 Opens the encoder
More...
 
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
 
AudioInfoLAME 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

Member Function Documentation

◆ begin()

void begin ( AudioInfoLAME  info)
inline

Opens the encoder

Parameters
info
Returns
int

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