|  | SDRAngel
    4.11.5
    Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware. | 
#include <audiocompressor.h>
| Public Member Functions | |
| AudioCompressor () | |
| ~AudioCompressor () | |
| void | fillLUT () | 
| 4 bands  More... | |
| void | fillLUT2 () | 
| 8 bands (default)  More... | |
| void | fillALaw () | 
| A-law compression to 8 bits.  More... | |
| void | fillULaw () | 
| u-law compression to 8 bits  More... | |
| int16_t | compress (int16_t sample) | 
| int8_t | compress8 (int16_t sample) | 
| Private Member Functions | |
| int8_t | ALaw_Encode (int16_t number) | 
| int8_t | MuLaw_Encode (int16_t number) | 
| Private Attributes | |
| int16_t | m_lut [32768] | 
| Static Private Attributes | |
| static const uint16_t | ALAW_MAX = 0xFFF | 
| static const uint16_t | MULAW_MAX = 0x1FFF | 
| static const uint16_t | MULAW_BIAS = 33 | 
Definition at line 25 of file audiocompressor.h.
| AudioCompressor::AudioCompressor | ( | ) | 
Definition at line 26 of file audiocompressor.cpp.
References fillLUT2().
 Here is the call graph for this function:
 Here is the call graph for this function:| AudioCompressor::~AudioCompressor | ( | ) | 
Definition at line 31 of file audiocompressor.cpp.
Definition at line 139 of file audiocompressor.cpp.
References ALAW_MAX.
Referenced by fillALaw().
 Here is the caller graph for this function:
 Here is the caller graph for this function:Definition at line 102 of file audiocompressor.cpp.
Referenced by AMBEWorker::upsample().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:Definition at line 109 of file audiocompressor.cpp.
References m_lut.
Referenced by AudioNetSink::write().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void AudioCompressor::fillALaw | ( | ) | 
A-law compression to 8 bits.
Definition at line 88 of file audiocompressor.cpp.
References ALaw_Encode(), i, and m_lut.
Referenced by AudioNetSink::setParameters().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void AudioCompressor::fillLUT | ( | ) | 
| void AudioCompressor::fillLUT2 | ( | ) | 
8 bands (default)
Definition at line 53 of file audiocompressor.cpp.
Referenced by AudioCompressor().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void AudioCompressor::fillULaw | ( | ) | 
u-law compression to 8 bits
Definition at line 95 of file audiocompressor.cpp.
References i, m_lut, and MuLaw_Encode().
Referenced by AudioNetSink::setParameters().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:Definition at line 175 of file audiocompressor.cpp.
References MULAW_BIAS, and MULAW_MAX.
Referenced by fillULaw().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprivate | 
Definition at line 42 of file audiocompressor.h.
Referenced by ALaw_Encode().
| 
 | private | 
Definition at line 41 of file audiocompressor.h.
Referenced by compress(), compress8(), fillALaw(), fillLUT(), fillLUT2(), and fillULaw().
| 
 | staticprivate | 
Definition at line 44 of file audiocompressor.h.
Referenced by MuLaw_Encode().
| 
 | staticprivate | 
Definition at line 43 of file audiocompressor.h.
Referenced by MuLaw_Encode().
 1.8.13
 1.8.13