Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
LC3Encoder Class Reference

Encoder for LC3 - Depends on More...

#include <CodecLC3.h>

Inheritance diagram for LC3Encoder:
AudioEncoder AudioWriter AudioInfoSupport

Public Member Functions

 LC3Encoder (int dt_us=7500, uint16_t outputByteCount=40)
AudioInfo audioInfo ()
 provides the actual input AudioInfo
virtual AudioInfo audioInfoOut ()
 provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
bool begin ()
virtual bool begin (AudioInfo info)
virtual void end ()
virtual const char * mime ()
 Provides the mime type of the encoded result.
 operator bool ()
void setAudioInfo (AudioInfo from) override
 Defines the sample rate, number of channels and bits per sample.
virtual void setOutput (Print &out_stream)
virtual size_t write (const void *in_ptr, size_t in_size)

Protected Member Functions

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

Protected Attributes

bool active = false
unsigned dt_us = 1000
AudioInfo 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

Phil Schatzmann

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