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

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

#include <CodecILBC.h>

Inheritance diagram for ILBCDecoder:
AudioDecoder AudioWriter AudioInfoSource

Public Member Functions

 ILBCDecoder (EnumLBCFrameSize frameSize=ms30, bool useEnhancer=true)
 
virtual AudioInfo audioInfo ()
 
virtual void begin ()
 
virtual void begin (AudioInfo info)
 
virtual void end ()
 
virtual bool isResultPCM ()
 If true, the decoding result is PCM data.
 
 operator bool ()
 
virtual void setAudioInfo (AudioInfo from) override
 for most decoders this is not needed
 
virtual void setNotifyAudioChange (AudioInfoSupport &bi)
 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.
 
virtual void setOutput (Print &out_stream)
 Defines where the decoded result is written to.
 
virtual size_t write (const void *input_buffer, size_t length)
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

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

Author
Phil Schatzmann

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