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

Decoder for GSM. Depends on https://github.com/pschatzmann/arduino-libgsm. Inspired by gsmdec.c. More...

#include <CodecGSM.h>

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

Public Member Functions

virtual AudioBaseInfo audioInfo ()
 
virtual void begin ()
 
virtual void begin (AudioBaseInfo cfg)
 
virtual void end ()
 
 operator bool ()
 
virtual void setAudioInfo (AudioBaseInfo cfg)
 
virtual void setNotifyAudioChange (AudioBaseInfoDependent &bi)
 
virtual void setOutputStream (Print &out_stream)
 
virtual size_t write (const void *data, 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

void processByte (uint8_t byte)
 Build decoding buffer and decode when frame is full.
 

Protected Attributes

AudioBaseInfo cfg
 
Vector< uint8_t > input_buffer
 
int input_pos = 0
 
bool is_active = false
 
AudioBaseInfoDependentp_notify = nullptr
 
Printp_print = nullptr
 
Vector< uint8_t > result_buffer
 
gsm v_gsm
 

Detailed Description

Decoder for GSM. Depends on https://github.com/pschatzmann/arduino-libgsm. Inspired by gsmdec.c.

Author
Phil Schatzmann

Member Function Documentation

◆ audioInfo()

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

◆ begin()

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

◆ end()

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

◆ operator bool()

audio_tools::GSMDecoder::operator bool ( )
inlinevirtual

◆ setAudioInfo()

virtual void audio_tools::GSMDecoder::setAudioInfo ( AudioBaseInfo  cfg)
inlinevirtual

Reimplemented from audio_tools::AudioDecoder.

◆ setNotifyAudioChange()

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

◆ setOutputStream()

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

◆ write()

virtual size_t audio_tools::GSMDecoder::write ( const void *  data,
size_t  length 
)
inlinevirtual

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