|
arduino-audio-tools
|
Opus Encoder which uses the Ogg Container: see https://datatracker.ietf.org/doc/html/rfc7845 Dependency: https://github.com/pschatzmann/arduino-libopus. More...
#include <CodecOpusOgg.h>
Public Member Functions | |
| OpusOggEncoder () | |
| AudioInfo | audioInfo () override |
| provides the actual input AudioInfo | |
| virtual AudioInfo | audioInfoOut () |
| bool | begin () override |
| starts the processing using the actual AudioInfo | |
| bool | begin (AudioInfo from) override |
| OpusEncoderSettings & | config () |
| Provides access to the Opus config. | |
| void | end () override |
| stops the processing | |
| uint32_t | frameDurationUs () override |
| provides the frame duration in us (e.g. for RTSP) | |
| bool | isOpen () |
| const char * | mime () override |
| Provides "audio/opus". | |
| 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 | |
| OpusAudioEncoder | enc |
| AudioInfo | info |
| OggContainerOutput | ogg |
| OpusOggWriter | ogg_writer |
| AudioEncoder * | p_codec = nullptr |
| OggContainerOutput * | p_ogg = &ogg |
Opus Encoder which uses the Ogg Container: see https://datatracker.ietf.org/doc/html/rfc7845 Dependency: https://github.com/pschatzmann/arduino-libopus.
|
inline |
|
inlineoverridevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in CodecNOP, MP3EncoderShine, BinaryContainerEncoder, and MP3ParserEncoder.
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, and ResampleStreamT< TInterpolator >.
|
inlineoverridevirtual |
starts the processing using the actual AudioInfo
Reimplemented from OggContainerEncoder.
Reimplemented from OggContainerEncoder.
|
inline |
Provides access to the Opus config.
|
inlineoverridevirtual |
stops the processing
Reimplemented from OggContainerEncoder.
|
inlineoverridevirtual |
provides the frame duration in us (e.g. for RTSP)
Reimplemented from AudioEncoder.
|
inlineinherited |
Provides "audio/opus".
Reimplemented from OggContainerEncoder.
Implements AudioWriter.
Optional rtsp function: provide samples per the frame.
Reimplemented in MP3EncoderShine, MP3ParserEncoder, and MetaDataFilterEncoder.
We actually do nothing with this.
Reimplemented from AudioEncoder.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
Replace the ogg output class.
Defines the output Stream.
Reimplemented from AudioEncoder.
Writes raw data to be encoded and packaged.
Implements AudioWriter.
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |