Opus Decoder which uses the Ogg Container. See https://datatracker.ietf.org/doc/html/rfc7845. The audio data is transmitted in frames and the header information contains the sampler rate, channels and other critical info. Dependency: https://github.com/pschatzmann/arduino-libopus.
More...
#include <CodecOpusOgg.h>
|
int | id |
| custom id to be used by application
|
|
|
virtual void | beginOfSegment (ogg_packet *op) override |
|
virtual void | endOfSegment (ogg_packet *op) |
|
void | notifyAudioChange (AudioInfo info) |
|
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
|
|
static size_t | ogg_io_read (void *user_handle, void *buf, size_t n) |
|
static int | read_packet (OGGZ *oggz, oggz_packet *zp, long serialno, void *user_data) |
|
static int | read_page (OGGZ *oggz, const ogg_page *og, long serialno, void *user_data) |
|
Opus Decoder which uses the Ogg Container. See https://datatracker.ietf.org/doc/html/rfc7845. The audio data is transmitted in frames and the header information contains the sampler rate, channels and other critical info. Dependency: https://github.com/pschatzmann/arduino-libopus.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ addNotifyAudioChange()
|
inlineoverridevirtualinherited |
Adds target to be notified about audio changes.
Reimplemented from AudioInfoSource.
◆ audioInfo()
|
inlineoverridevirtualinherited |
◆ audioInfoOut()
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 >.
◆ begin() [1/2]
◆ begin() [2/2]
|
inlineoverridevirtualinherited |
◆ beginOfSegment()
virtual void beginOfSegment |
( |
ogg_packet * |
op | ) |
|
|
inlineoverrideprotectedvirtual |
◆ end()
◆ operator bool()
virtual operator bool |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ setAudioInfo()
|
inlineoverridevirtualinherited |
◆ setCodecConfig()
virtual bool setCodecConfig |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlinevirtualinherited |
Some decoders need e.g. a magic cookie to provide the relevant info for decoding.
Reimplemented in DecoderALAC, and MultiDecoder.
◆ setOutput() [1/3]
◆ setOutput() [2/3]
◆ setOutput() [3/3]
void setOutput |
( |
Print & |
print | ) |
|
|
inlineoverridevirtualinherited |
◆ write()
virtual size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtualinherited |
The documentation for this class was generated from the following file: