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

Encoder for OpenAptx - Depends on https://github.com/pschatzmann/libopenaptx. More...

#include <CodecAPTX.h>

Inheritance diagram for audio_tools::APTXEncoder:
audio_tools::AudioEncoder audio_tools::AudioWriter

Public Member Functions

 APTXEncoder (bool isHd=false)
 
void begin ()
 
void begin (AudioBaseInfo info)
 
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 Attributes

struct aptx_context * ctx = nullptr
 
AudioBaseInfo info
 
Vector< int24_tinput_buffer {4 * 2}
 
int input_pos = 0
 
bool is_hd
 
Vector< uint8_t > output_buffer
 
int output_pos = 0
 
Printp_print = nullptr
 

Detailed Description

Encoder for OpenAptx - Depends on https://github.com/pschatzmann/libopenaptx.

Author
Phil Schatzmann

Member Function Documentation

◆ begin()

void audio_tools::APTXEncoder::begin ( )
inlinevirtual

◆ end()

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

◆ mime()

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

◆ operator bool()

audio_tools::APTXEncoder::operator bool ( )
inlinevirtual

◆ setAudioInfo()

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

◆ setOutputStream()

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

◆ write()

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

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