arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpusOggEncoder Class Reference

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>

Inheritance diagram for OpusOggEncoder:
OggContainerEncoder AudioEncoder AudioWriter AudioInfoSupport

Public Member Functions

AudioInfo audioInfo ()
 provides the actual input AudioInfo
 
virtual AudioInfo audioInfoOut ()
 provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
 
virtual bool begin () override
 starts the processing using the actual AudioInfo
 
virtual bool begin (AudioInfo from) override
 
OpusEncoderSettingsconfig ()
 Provides access to the Opus config.
 
void end () override
 stops the processing
 
bool isOpen ()
 
const char * mime () override
 Provides "audio/opus".
 
 operator bool () override
 
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
 
AudioEncoderp_codec = nullptr
 
OggContainerOutputp_ogg = &ogg
 

Detailed Description

Opus Encoder which uses the Ogg Container: see https://datatracker.ietf.org/doc/html/rfc7845 Dependency: https://github.com/pschatzmann/arduino-libopus.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: