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

Decoder for iLBC. Depends on https://github.com/pschatzmann/libilbc. More...

#include <CodecILBC.h>

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

Public Member Functions

 ILBCDecoder (EnumLBCFrameSize frameSize=ms30, bool useEnhancer=true)
 
virtual AudioBaseInfo audioInfo ()
 
virtual void begin ()
 
virtual void end ()
 
 operator bool ()
 
virtual void setNotifyAudioChange (AudioBaseInfoDependent &bi)
 
virtual void setOutputStream (Print &out_stream)
 
virtual size_t write (const void *input_buffer, size_t length)
 
- 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

Vector< int16_t > decoded_buffer {0}
 
Vector< uint8_t > encoded_buffer {0}
 
int16_t encoded_buffer_pos = 0
 
EnumLBCFrameSize frame_size
 
AudioBaseInfo info
 
AudioBaseInfoDependentnotify = nullptr
 
iLBCDecode * p_ilbc = nullptr
 
Printp_print = nullptr
 
bool use_enhancer
 

Detailed Description

Decoder for iLBC. Depends on https://github.com/pschatzmann/libilbc.

Author
Phil Schatzmann

Member Function Documentation

◆ audioInfo()

virtual AudioBaseInfo audio_tools::ILBCDecoder::audioInfo ( )
inlinevirtual

◆ begin()

virtual void audio_tools::ILBCDecoder::begin ( )
inlinevirtual

◆ end()

virtual void audio_tools::ILBCDecoder::end ( )
inlinevirtual

◆ operator bool()

audio_tools::ILBCDecoder::operator bool ( )
inlinevirtual

◆ setNotifyAudioChange()

virtual void audio_tools::ILBCDecoder::setNotifyAudioChange ( AudioBaseInfoDependent bi)
inlinevirtual

◆ setOutputStream()

virtual void audio_tools::ILBCDecoder::setOutputStream ( Print out_stream)
inlinevirtual

◆ write()

virtual size_t audio_tools::ILBCDecoder::write ( const void *  input_buffer,
size_t  length 
)
inlinevirtual

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