Decoder for Ogg Container. Decodes a packet from an Ogg container. The Ogg begin segment contains the AudioInfo structure. You can subclass and overwrite the beginOfSegment() method to implement your own headers Dependency: https://github.com/pschatzmann/arduino-libopus.
More...
#include <ContainerOgg.h>
|
int | id |
| custom id to be used by application
|
|
|
virtual void | beginOfSegment (ogg_packet *op) |
|
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) |
|
Decoder for Ogg Container. Decodes a packet from an Ogg container. The Ogg begin segment contains the AudioInfo structure. You can subclass and overwrite the beginOfSegment() method to implement your own headers Dependency: https://github.com/pschatzmann/arduino-libopus.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ addNotifyAudioChange()
Adds target to be notified about audio changes.
Reimplemented from AudioInfoSource.
◆ audioInfo()
◆ 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]
◆ end()
◆ operator bool()
virtual operator bool |
( |
| ) |
|
|
inlineoverridevirtual |
◆ 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 | ) |
|
|
inlineoverridevirtual |
◆ write()
virtual size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: