|
arduino-audio-tools
|
EncoderBasic - supports mime type audio/basic. The content of the "audio/basic" subtype is single channel audio encoded using 8bit ISDN mu-law [PCM] at a sample rate of 8000 Hz. Requires https://github.com/pschatzmann/arduino-libg7xx. More...
#include <CodecBasic.h>
Public Member Functions | |
| EncoderBasic () | |
| EncoderBasic (Print &out) | |
| AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfoOut () |
| bool | begin () override |
| starts the processing using the actual RAWAudioInfo | |
| virtual bool | begin (AudioInfo info) |
| void | end () override |
| stops the processing | |
| virtual uint32_t | frameDurationUs () |
| Optional rtsp function: provide the frame duration in microseconds. | |
| bool | isOpen () |
| const char * | mime () override |
| Provides "audio/pcm". | |
| operator bool () override | |
| virtual uint16_t | samplesPerFrame () |
| Optional rtsp function: provide samples per the frame. | |
| virtual void | setAudioInfo (AudioInfo from) override |
| We actually do nothing with this. | |
| void | setOutput (Print &out) override |
| Defines the output Stream. | |
| virtual size_t | write (const uint8_t *in_ptr, size_t in_size) override |
| Writes PCM data to be encoded as RAW. | |
Protected Member Functions | |
| void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
| G711_ULAWEncoder | encoder |
| AudioInfo | info |
EncoderBasic - supports mime type audio/basic. The content of the "audio/basic" subtype is single channel audio encoded using 8bit ISDN mu-law [PCM] at a sample rate of 8000 Hz. Requires https://github.com/pschatzmann/arduino-libg7xx.
|
inline |
|
inline |
|
inlineoverridevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in CodecNOP, BinaryContainerEncoder, and MP3ParserEncoder.
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 |
starts the processing using the actual RAWAudioInfo
Implements AudioWriter.
Reimplemented in OggContainerEncoder, DecoderBasic, AudioDecoder, AACEncoderFDK, OggContainerDecoder, and MetaDataFilterEncoder.
|
inlineoverridevirtual |
stops the processing
Implements AudioWriter.
Optional rtsp function: provide the frame duration in microseconds.
Reimplemented in ADPCMEncoder, OpusOggEncoder, MP3ParserEncoder, and MetaDataFilterEncoder.
|
inline |
Provides "audio/pcm".
Implements AudioEncoder.
Implements AudioWriter.
Optional rtsp function: provide samples per the frame.
Reimplemented in MP3ParserEncoder, and MetaDataFilterEncoder.
We actually do nothing with this.
Reimplemented from AudioEncoder.
Defines the output Stream.
Reimplemented from AudioEncoder.
Writes PCM data to be encoded as RAW.
Implements AudioWriter.
|
protected |
|
protectedinherited |