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

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

#include <CodecLC3.h>

Inheritance diagram for audio_tools::LC3Encoder:
audio_tools::AudioEncoder audio_tools::AudioWriter

Public Member Functions

 LC3Encoder (int dt_us=LC3_DEFAULT_DT_US, uint16_t outputByteCount=DEFAULT_BYTE_COUNT)
 
void begin ()
 
void begin (AudioBaseInfo bi)
 
virtual void end ()
 
virtual const char * mime ()
 
 operator bool ()
 
virtual void setAudioInfo (AudioBaseInfo info)
 
virtual void setOutputStream (Print &out_stream)
 
virtual size_t write (const void *in_ptr, size_t in_size)
 
- Public Member Functions inherited from audio_tools::AudioEncoder
 AudioEncoder (AudioEncoder const &)=delete
 
virtual const char * mime ()=0
 
AudioEncoderoperator= (AudioEncoder const &)=delete
 
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
 

Protected Member Functions

bool checkValues ()
 

Protected Attributes

bool active = false
 
unsigned dt_us = 1000
 
AudioBaseInfo info
 
Vector< uint8_t > input_buffer
 
int input_pos = 0
 
lc3_encoder_t lc3_encoder = nullptr
 
Vector< uint8_t > lc3_encoder_memory
 
uint16_t num_frames
 
Vector< uint8_t > output_buffer
 
uint16_t output_byte_count = 20
 
Printp_print = nullptr
 
lc3_pcm_format pcm_format
 

Detailed Description

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

Author
Phil Schatzmann

Member Function Documentation

◆ begin()

void audio_tools::LC3Encoder::begin ( )
inlinevirtual

◆ end()

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

◆ mime()

virtual const char * audio_tools::LC3Encoder::mime ( )
inlinevirtual

◆ operator bool()

audio_tools::LC3Encoder::operator bool ( )
inlinevirtual

◆ setAudioInfo()

virtual void audio_tools::LC3Encoder::setAudioInfo ( AudioBaseInfo  info)
inlinevirtual

◆ setOutputStream()

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

◆ write()

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

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