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

OpusAudioDecoder: Depends on https://github.com/pschatzmann/arduino-libopus.git. More...

#include <CodecOpus.h>

Inheritance diagram for OpusAudioDecoder:
AudioDecoder AudioWriter AudioInfoSource

Public Member Functions

 OpusAudioDecoder ()
 Construct a new OpusDecoder object.
 
 OpusAudioDecoder (Print &out_stream)
 Construct a new OpusDecoder object. More...
 
AudioInfo audioInfo () override
 
void begin () override
 
virtual void begin (AudioInfo info)
 
void begin (OpusSettings settings)
 
OpusSettingsconfig ()
 Provides access to the configuration.
 
OpusSettingsdefaultConfig ()
 
void end () override
 
virtual bool isResultPCM ()
 If true, the decoding result is PCM data.
 
 operator bool () override
 
void setAudioInfo (AudioInfo from) override
 for most decoders this is not needed
 
void setNotifyAudioChange (AudioInfoSupport &bi) override
 Registers an object that is notified if the audio format is changing.
 
virtual void setOutput (AudioOutput &out_stream)
 Defines where the decoded result is written to.
 
virtual void setOutput (AudioStream &out_stream)
 Defines where the decoded result is written to.
 
void setOutput (Print &out_stream) override
 Defines the output Stream.
 
size_t write (const void *in_ptr, size_t in_size) override
 

Protected Member Functions

void writeBlocking (Print *out, uint8_t *data, size_t len)
 

Protected Attributes

bool active
 
OpusSettings cfg
 
OpusDecoder * dec
 
AudioInfo info
 
Vector< uint8_t > outbuf {0}
 
AudioInfoSupportp_notify = nullptr
 
Printp_print = nullptr
 

Detailed Description

OpusAudioDecoder: Depends on https://github.com/pschatzmann/arduino-libopus.git.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ OpusAudioDecoder()

OpusAudioDecoder ( Print out_stream)
inline

Construct a new OpusDecoder object.

Parameters
out_streamOutput Stream to which we write the decoded result

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