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/codec-lame.
More...
#include <CodecMP3LAME.h>
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/codec-lame.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ MP3EncoderLAME() [1/2]
◆ MP3EncoderLAME() [2/2]
◆ ~MP3EncoderLAME()
◆ audioInfo()
|
|
inlineoverridevirtualinherited |
◆ audioInfoExt()
◆ audioInfoOut()
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in MP3EncoderShine, PureDataStream, PWMAudioOutput< PWMDriverT >, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, ResampleStreamT< TInterpolator >, and SupportedRatesStream.
◆ begin() [1/3]
◆ begin() [2/3]
◆ begin() [3/3]
◆ createEnc()
◆ defaultConfig()
◆ driver()
| liblame::MP3EncoderLAME * driver |
( |
| ) |
|
|
inline |
◆ end()
◆ frameDurationUs()
| virtual uint32_t frameDurationUs |
( |
| ) |
|
|
inlinevirtualinherited |
◆ frameSize()
| virtual int frameSize |
( |
| ) |
|
|
inlinevirtualinherited |
Optional rtsp function: provide the encoded size (in bytes) of one frame, once known (e.g. after the encoder has seen real data). Lets an RTSPFormat size its RTP fragments to match one frame instead of a fixed guess, so throughput actually tracks frameDurationUs() - a fragment size covering several frames' worth of bytes sent at one-frame timing overruns real-time bandwidth and, over UDP (no flow control), causes packet loss. Returns 0 if not yet known/not applicable (fixed-frame-size codecs have no need to override this).
Reimplemented in ADPCMEncoder, EncoderALAC, AMRNBEncoder, AMRWBEncoder, and MP3ParserEncoder.
◆ mime()
Provides the mime type of the encoded result.
Implements AudioEncoder.
◆ operator bool()
| virtual operator bool |
( |
| ) |
|
|
inlinevirtual |
◆ samplesPerFrame()
| virtual uint16_t samplesPerFrame |
( |
| ) |
|
|
inlinevirtualinherited |
◆ setAudioInfo() [1/2]
◆ setAudioInfo() [2/2]
◆ setOutput()
| void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlinevirtual |
◆ write()
| size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlinevirtual |
◆ writeBlocking()
| void writeBlocking |
( |
Print * |
out, |
|
|
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineprotectedinherited |
◆ enc
| liblame::MP3EncoderLAME* enc =nullptr |
|
protected |
◆ info
◆ lame_info
◆ p_print
The documentation for this class was generated from the following file: