|
arduino-audio-tools
|
Encoder for Opus multistream audio. Supports up to 255 channels by combining multiple Opus streams into a single packet. Each fully encoded frame is written to the output stream. More...
#include <CodecOpusMultiStream.h>
Protected Member Functions | |
| void | encodeByte (uint8_t data) |
| void | encodeFrame () |
| int | getFrameSizeSamples (int sampling_rate) |
| bool | settings () |
| void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
| OpusMultiStreamEncoderSettings | cfg |
| OpusMSEncoder * | enc = nullptr |
| Vector< uint8_t > | frame {0} |
| int | frame_pos = 0 |
| AudioInfo | info |
| bool | is_open = false |
| Print * | p_print = nullptr |
| Vector< uint8_t > | packet {0} |
Encoder for Opus multistream audio. Supports up to 255 channels by combining multiple Opus streams into a single packet. Each fully encoded frame is written to the output stream.
Depends on https://github.com/pschatzmann/arduino-libopus.git
|
default |
|
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 |
Implements AudioWriter.
Reimplemented in OpusOggEncoder, OggContainerEncoder, DecoderBasic, AudioDecoder, AACEncoderFDK, OggContainerDecoder, and MetaDataFilterEncoder.
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineoverridevirtual |
Implements AudioWriter.
Optional rtsp function: provide the frame duration in microseconds.
Reimplemented in ADPCMEncoder, MP3EncoderShine, OpusOggEncoder, MP3ParserEncoder, and MetaDataFilterEncoder.
|
inline |
|
inline |
|
inline |
Provides the mime type of the encoded result.
Implements AudioEncoder.
Implements AudioWriter.
|
inline |
|
inlinevirtual |
Optional rtsp function: provide samples per the frame.
Reimplemented from AudioEncoder.
Defines the sample rate, number of channels and bits per sample.
Reimplemented from AudioEncoder.
Default output assignment (encoders may override to store Print reference)
Reimplemented from AudioEncoder.
|
inlineprotected |
Implements AudioWriter.
|
protected |
|
protected |
|
protected |
|
protectedinherited |