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

Decoder for LC3. Depends on https://github.com/pschatzmann/arduino-liblc3. More...

#include <CodecLC3.h>

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

Public Member Functions

 LC3Decoder (AudioBaseInfo info, int dt_us=LC3_DEFAULT_DT_US, uint16_t inputByteCount=DEFAULT_BYTE_COUNT)
 
 LC3Decoder (int dt_us=LC3_DEFAULT_DT_US, uint16_t inputByteCount=DEFAULT_BYTE_COUNT)
 
virtual AudioBaseInfo audioInfo ()
 
virtual void begin ()
 
void begin (AudioBaseInfo bi)
 
virtual void end ()
 
 operator bool ()
 
virtual void setNotifyAudioChange (AudioBaseInfoDependent &bi)
 
virtual void setOutputStream (Print &out_stream)
 
virtual size_t write (const void *input, 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 Member Functions

bool checkValues ()
 

Protected Attributes

bool active = false
 
unsigned dec_size
 
int dt_us
 
AudioBaseInfo info
 
Vector< uint8_t > input_buffer
 
uint16_t input_byte_count = 20
 
size_t input_pos = 0
 
lc3_decoder_t lc3_decoder = nullptr
 
Vector< uint8_t > lc3_decoder_memory
 
uint16_t num_frames
 
Vector< uint16_t > output_buffer
 
AudioBaseInfoDependentp_notify = nullptr
 
Printp_print = nullptr
 
lc3_pcm_format pcm_format
 

Detailed Description

Decoder for LC3. Depends on https://github.com/pschatzmann/arduino-liblc3.

Author
Phil Schatzmann

Member Function Documentation

◆ audioInfo()

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

◆ begin()

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

◆ end()

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

◆ operator bool()

audio_tools::LC3Decoder::operator bool ( )
inlinevirtual

◆ setNotifyAudioChange()

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

◆ setOutputStream()

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

◆ write()

virtual size_t audio_tools::LC3Decoder::write ( const void *  input,
size_t  length 
)
inlinevirtual

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