arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
audio_tools::OpusAudioDecoder Class Reference

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

#include <CodecOpus.h>

Inheritance diagram for audio_tools::OpusAudioDecoder:
audio_tools::AudioDecoder audio_tools::AudioWriter audio_tools::AudioBaseInfoSource

Public Member Functions

 OpusAudioDecoder ()
 Construct a new OpusDecoder object.
 
 OpusAudioDecoder (Print &out_stream)
 Construct a new OpusDecoder object. More...
 
AudioBaseInfo audioInfo () override
 
void begin () override
 
void begin (OpusSettings info)
 
OpusSettingsconfig ()
 Provides access to the configuration.
 
OpusSettingsdefaultConfig ()
 
void end () override
 
 operator bool () override
 
void setAudioInfo (AudioBaseInfo from) override
 
void setNotifyAudioChange (AudioBaseInfoDependent &bi) override
 
void setOutputStream (Print &out_stream) override
 Defines the output Stream. More...
 
size_t write (const void *in_ptr, size_t in_size)
 
- Public Member Functions inherited from audio_tools::AudioDecoder
 AudioDecoder (AudioDecoder const &)=delete
 
virtual AudioBaseInfo audioInfo ()=0
 
virtual bool isResultPCM ()
 
AudioDecoderoperator= (AudioDecoder const &)=delete
 
virtual void setAudioInfo (AudioBaseInfo from) override
 
virtual void setOutputStream (AudioPrint &out_stream)
 
virtual void setOutputStream (AudioStream &out_stream)
 
virtual void setOutputStream (Print &out_stream) override=0
 
virtual void begin ()=0
 
virtual void end ()=0
 
virtual operator bool ()=0
 
virtual void setAudioInfo (AudioBaseInfo from)=0
 
virtual void setOutputStream (Print &out_stream)=0
 
virtual size_t write (const void *in_ptr, size_t in_size)=0
 
virtual void setNotifyAudioChange (AudioBaseInfoDependent &bi)=0
 

Protected Attributes

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

Detailed Description

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

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ OpusAudioDecoder()

audio_tools::OpusAudioDecoder::OpusAudioDecoder ( Print out_stream)
inline

Construct a new OpusDecoder object.

Parameters
out_streamOutput Stream to which we write the decoded result

Member Function Documentation

◆ audioInfo()

AudioBaseInfo audio_tools::OpusAudioDecoder::audioInfo ( )
inlineoverridevirtual

◆ begin()

void audio_tools::OpusAudioDecoder::begin ( )
inlineoverridevirtual

◆ end()

void audio_tools::OpusAudioDecoder::end ( )
inlineoverridevirtual

◆ operator bool()

audio_tools::OpusAudioDecoder::operator bool ( )
inlineoverridevirtual

◆ setAudioInfo()

void audio_tools::OpusAudioDecoder::setAudioInfo ( AudioBaseInfo  from)
inlineoverridevirtual

Reimplemented from audio_tools::AudioDecoder.

◆ setNotifyAudioChange()

void audio_tools::OpusAudioDecoder::setNotifyAudioChange ( AudioBaseInfoDependent bi)
inlineoverridevirtual

◆ setOutputStream()

void audio_tools::OpusAudioDecoder::setOutputStream ( Print out_stream)
inlineoverridevirtual

Defines the output Stream.

Implements audio_tools::AudioDecoder.

◆ write()

size_t audio_tools::OpusAudioDecoder::write ( const void *  in_ptr,
size_t  in_size 
)
inlinevirtual

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