64 kbit/s g711 ULOW Decoder based on https://github.com/pschatzmann/arduino-libg7xx Supported decoder parameters: alaw2linear, ulaw2linear
More...
#include <CodecG7xx.h>
|
| G711Decoder (int(*dec)(uint8_t a_val)) |
|
virtual void | addNotifyAudioChange (AudioInfoSupport &bi) |
| Adds target to be notified about audio changes.
|
|
virtual AudioInfo | audioInfo () |
| provides the actual input AudioInfo
|
|
virtual AudioInfo | audioInfoOut () |
|
bool | begin () override |
|
virtual bool | begin (AudioInfo info) override |
|
virtual void | clearNotifyAudioChange () |
| Deletes all change notify subscriptions.
|
|
void | end () override |
|
Print * | getOutput () |
|
bool | isNotifyActive () |
| Checks if the automatic AudioInfo update is active.
|
|
virtual bool | isResultPCM () |
| Returns true to indicate that the decoding result is PCM data.
|
|
| operator bool () |
|
virtual bool | removeNotifyAudioChange (AudioInfoSupport &bi) |
| Removes a target in order not to be notified about audio changes.
|
|
void | setAudioInfo (AudioInfo info) override |
| for most decoders this is not needed
|
|
void | setNotifyActive (bool flag) |
| Deactivate/Reactivate automatic AudioInfo updates: (default is active)
|
|
virtual void | setOutput (AudioOutput &out_stream) |
| Defines where the decoded result is written to.
|
|
virtual void | setOutput (AudioStream &out_stream) |
| Defines where the decoded result is written to.
|
|
void | setOutput (Print &out_stream) override |
| Defines where the decoded result is written to.
|
|
size_t | write (const uint8_t *data, size_t len) override |
|
|
int | id |
| custom id to be used by application
|
|
|
void | notifyAudioChange (AudioInfo info) |
|
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
|
|
unsigned char | code |
|
int(* | dec )(uint8_t a_val) =nullptr |
|
int | dec_bits |
|
int(* | dec_routine )(int code, int out_coding, struct g72x_state *state_ptr) |
|
int | in_bits = 0 |
|
unsigned int | in_buffer = 0 |
|
AudioInfo | info |
|
int | input_pos = 0 |
|
bool | is_active = false |
|
bool | is_notify_active = true |
|
int | n |
|
Vector< AudioInfoSupport * > | notify_vector |
|
int | out_size |
|
Print * | p_print = nullptr |
|
int16_t | sample |
|
struct g72x_state | state |
|
64 kbit/s g711 ULOW Decoder based on https://github.com/pschatzmann/arduino-libg7xx Supported decoder parameters: alaw2linear, ulaw2linear
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ addNotifyAudioChange()
◆ audioInfo()
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in CodecNOP, GGWaveDecoder, AACDecoderFDK, AACDecoderHelix, DecoderBasic, MP3DecoderHelix, MP3DecoderMAD, OpusAudioDecoder, WAVDecoder, WavIMADecoder, and OggContainerDecoder.
◆ audioInfoOut()
◆ begin() [1/2]
|
inlineoverridevirtualinherited |
◆ begin() [2/2]
|
inlineoverridevirtualinherited |
◆ end()
|
inlineoverridevirtualinherited |
◆ isResultPCM()
virtual bool isResultPCM |
( |
| ) |
|
|
inlinevirtualinherited |
◆ operator bool()
◆ setAudioInfo()
|
inlineoverridevirtualinherited |
for most decoders this is not needed
Reimplemented from AudioDecoder.
◆ setOutput() [1/3]
◆ setOutput() [2/3]
◆ setOutput() [3/3]
void setOutput |
( |
Print & |
out_stream | ) |
|
|
inlineoverridevirtualinherited |
Defines where the decoded result is written to.
Reimplemented from AudioDecoder.
◆ write()
size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: