|
arduino-audio-tools
|
Parses MP3 frames, extracts audio info, and outputs complete frames. The frame duration is determined e.g. for RTSP streaming. More...
#include <MP3Parser.h>
Public Member Functions | |
| MP3ParserEncoder (int bufferSize=1024 *2) | |
| AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfoOut () |
| bool | begin () override |
| virtual bool | begin (AudioInfo info) |
| void | end () override |
| uint32_t | frameDurationUs () override |
| Optional rtsp function: provide the frame duration in microseconds. | |
| virtual const char * | mime () override |
| Provides the mime type of the encoded result. | |
| operator bool () override | |
| uint16_t | samplesPerFrame () override |
| Optional rtsp function: provide samples per the frame. | |
| void | setAudioInfo (AudioInfo from) override |
| Defines the sample rate, number of channels and bits per sample. | |
| void | setOutput (Print &out_stream) override |
| Default output assignment (encoders may override to store Print reference) | |
| size_t | write (const uint8_t *data, size_t len) override |
Protected Member Functions | |
| void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
| int | buffer_size = 0 |
| AudioInfo | info |
| HeaderParserMP3 | mp3 |
Parses MP3 frames, extracts audio info, and outputs complete frames. The frame duration is determined e.g. for RTSP streaming.
|
inline |
|
inlineoverridevirtual |
provides the actual input AudioInfo
Reimplemented from AudioEncoder.
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 >.
|
inlineoverridevirtual |
Implements AudioWriter.
Reimplemented in OggContainerEncoder, DecoderBasic, AudioDecoder, AACEncoderFDK, OggContainerDecoder, and MetaDataFilterEncoder.
|
inlineoverridevirtual |
Implements AudioWriter.
|
inlineoverridevirtual |
Optional rtsp function: provide the frame duration in microseconds.
Reimplemented from AudioEncoder.
Provides the mime type of the encoded result.
Implements AudioEncoder.
Implements AudioWriter.
|
inlineoverridevirtual |
Optional rtsp function: provide samples per the frame.
Reimplemented from AudioEncoder.
Defines the sample rate, number of channels and bits per sample.
Implements AudioWriter.
Reimplemented in MP3EncoderLAME, EncoderBasic, CodecChain, FLACEncoder, OpusAudioEncoder, WAVEncoder, CodecNOP, G7xxEncoder, BinaryContainerEncoder, OggContainerEncoder, OSCContainerEncoder, and MetaDataFilterEncoder.
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
Implements AudioWriter.
|
protected |
|
protectedinherited |
|
protected |