|
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 () override |
| provides the actual input AudioInfo | |
| AudioInfoLAME & | audioInfoExt () |
| virtual AudioInfo | audioInfoOut () |
| bool | begin () |
| virtual bool | begin (AudioInfo info) |
| bool | begin (AudioInfoLAME from) |
| AudioInfoLAME | defaultConfig () |
| liblame::MP3EncoderLAME * | driver () |
| void | end () |
| virtual uint32_t | frameDurationUs () |
| Optional rtsp function: provide the frame duration in microseconds. | |
| const char * | mime () |
| Provides the mime type of the encoded result. | |
| virtual | operator bool () |
| virtual uint16_t | samplesPerFrame () |
| Optional rtsp function: provide samples per the frame. | |
| 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.
|
inlineoverridevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in CodecNOP, BinaryContainerEncoder, and MP3ParserEncoder.
|
inlinevirtualinherited |
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in PureDataStream, PWMAudioOutput, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
|
inlinevirtual |
Implements AudioWriter.
|
inlinevirtualinherited |
Reimplemented in AACEncoderFDK.
|
inlinevirtual |
Implements AudioWriter.
|
inlinevirtualinherited |
Optional rtsp function: provide the frame duration in microseconds.
Reimplemented in ADPCMEncoder, OpusOggEncoder, MP3ParserEncoder, and MetaDataFilterEncoder.
|
inlinevirtual |
Provides the mime type of the encoded result.
Implements AudioEncoder.
|
inlinevirtual |
Implements AudioWriter.
|
inlinevirtualinherited |
Optional rtsp function: provide samples per the frame.
Reimplemented in MP3ParserEncoder, and MetaDataFilterEncoder.
|
inlinevirtual |
Defines the Audio Info.
Reimplemented from AudioEncoder.
|
inlinevirtual |
Defines the output stream.
Reimplemented from AudioEncoder.
|
inlinevirtual |
Implements AudioWriter.