|
arduino-audio-tools
|
Encoder for Ogg Container. Encodes a packet for an Ogg container. The Ogg begin segment contains the AudioInfo structure. You can subclass ond overwrite the writeHeader() method to implement your own header logic. When an optional encoder is specified in the constructor we package the encoded data. Dependency: https://github.com/pschatzmann/arduino-libopus. More...
#include <ContainerOgg.h>
Public Member Functions | |
| OggContainerEncoder ()=default | |
| OggContainerEncoder (AudioEncoder &encoder) | |
| OggContainerEncoder (AudioEncoder *encoder) | |
| AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfoOut () |
| virtual bool | begin () override |
| starts the processing using the actual AudioInfo | |
| virtual bool | begin (AudioInfo from) override |
| 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 info) override |
| We actually do nothing with this. | |
| void | setOutput (Print &print) override |
| Defines the output Stream. | |
| virtual size_t | write (const uint8_t *data, size_t len) override |
| Writes raw data to be encoded and packaged. | |
Protected Member Functions | |
| void | setEncoder (AudioEncoder *enc) |
| void | setOggOutput (OggContainerOutput *out) |
| Replace the ogg output class. | |
| void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
| AudioInfo | info |
| OggContainerOutput | ogg |
| AudioEncoder * | p_codec = nullptr |
| OggContainerOutput * | p_ogg = &ogg |
Encoder for Ogg Container. Encodes a packet for an Ogg container. The Ogg begin segment contains the AudioInfo structure. You can subclass ond overwrite the writeHeader() method to implement your own header logic. When an optional encoder is specified in the constructor we package the encoded data. Dependency: https://github.com/pschatzmann/arduino-libopus.
|
default |
|
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 >.
starts the processing using the actual AudioInfo
Implements AudioWriter.
Reimplemented from AudioWriter.
|
inlineoverridevirtual |
stops the processing
Implements AudioWriter.
Optional rtsp function: provide the frame duration in microseconds.
Reimplemented in ADPCMEncoder, OpusOggEncoder, MP3ParserEncoder, and MetaDataFilterEncoder.
|
inline |
Implements AudioWriter.
Optional rtsp function: provide samples per the frame.
Reimplemented in MP3ParserEncoder, and MetaDataFilterEncoder.
We actually do nothing with this.
Reimplemented from AudioEncoder.
|
inlineprotected |
|
inlineprotected |
Replace the ogg output class.
Defines the output Stream.
Reimplemented from AudioEncoder.
Writes raw data to be encoded and packaged.
Implements AudioWriter.
|
protectedinherited |
|
protected |
|
protected |
|
protected |