Process audio data compressed with ALaw. More...
Public Member Functions | |
const Burger::StaticRTTI * | get_StaticRTTI (void) const noexcept override |
Get the description to the class. | |
DecompressALaw () | |
Default constructor. | |
eError | Reset (void) override |
Resets the decompresser to defaults. | |
eError | Process (void *pOutput, uintptr_t uOutputChunkSize, const void *pInput, uintptr_t uInputChunkLength) override |
Decompress audio data using alaw. | |
Public Member Functions inherited from Burger::DecompressAudio | |
const Burger::StaticRTTI * | get_StaticRTTI (void) const noexcept override |
Get the description to the class. | |
SoundManager::eDataType | GetDataType (void) const |
Returns the uncompressed data type this codec will output. | |
void | SetMono (void) |
Alert the decompression codec to create a single audio channel. | |
void | SetStereo (void) |
Alert the decompression codec to create stereo channels. | |
uint_t | IsStereo (void) const |
Obtain the stereo/mono state of the decompresser. | |
Public Member Functions inherited from Burger::Decompress | |
Decompress (void) | |
Default constructor. | |
uintptr_t | GetTotalInputSize (void) const noexcept |
Get the total processed input data in bytes. | |
uintptr_t | GetTotalOutputSize (void) const noexcept |
Get the total processed output data in bytes. | |
uintptr_t | GetProcessedInputSize (void) const noexcept |
Get the total processed output data in bytes from the last process pass. | |
uintptr_t | GetProcessedOutputSize (void) const noexcept |
Get the total processed output data in bytes from the last process pass. | |
uint32_t | GetSignature (void) const noexcept |
Return the signature for this decompressor. | |
Public Member Functions inherited from Burger::Base | |
const char * | get_class_name (void) const noexcept |
Get the name of the class. | |
virtual | ~Base () noexcept=default |
Destructor. | |
Static Public Member Functions | |
static DecompressALaw * | New (void) |
Allocate and initialize a DecompressALaw. | |
Static Public Attributes | |
static const Burger::StaticRTTI | g_StaticRTTI |
The global description of the class. | |
static const int16_t | g_Table [256] |
ALaw decompression lookup table. | |
static const uint32_t | Signature = 0x616C6177 |
'alaw' | |
Static Public Attributes inherited from Burger::DecompressAudio | |
static const Burger::StaticRTTI | g_StaticRTTI |
The global description of the class. | |
Static Public Attributes inherited from Burger::Decompress | |
static const Burger::StaticRTTI | g_StaticRTTI |
The global description of the class. | |
Static Public Attributes inherited from Burger::Base | |
static const Burger::StaticRTTI | g_StaticRTTI |
The global description of the class. | |
Protected Types | |
enum | eState { STATE_INIT , STATE_CACHEFULL } |
Protected Attributes | |
uint_t | m_uCacheSize |
Number of valid bytes in m_uCache. | |
eState | m_eState |
State of the decompression. | |
int16_t | m_iCache |
Temp uncompressed data buffer. | |
Protected Attributes inherited from Burger::DecompressAudio | |
SoundManager::eDataType | m_eDataType |
Data type the decompresser will create. | |
uint_t | m_bStereo |
TRUE if data is stereo | |
Protected Attributes inherited from Burger::Decompress | |
uintptr_t | m_uTotalInput |
Total number of bytes processed for input. | |
uintptr_t | m_uTotalOutput |
Total number of bytes processed for output. | |
uintptr_t | m_uInputLength |
Number of input bytes processed from the last call to Process() | |
uintptr_t | m_uOutputLength |
Number of output bytes processed from the last call to Process() | |
uint32_t | m_uSignature |
4 character code to identify this decompresser | |
Additional Inherited Members | |
Protected Member Functions inherited from Burger::DecompressAudio | |
DecompressAudio (SoundManager::eDataType uDataType) | |
Constructor. | |
Process audio data compressed with ALaw.
Convert audio data compressed with ALaw to native 16 bit format
|
protected |
Burger::DecompressALaw::DecompressALaw | ( | ) |
Default constructor.
Initializes the defaults
|
overridevirtualnoexcept |
Get the description to the class.
This virtual function will pull the pointer to the StaticRTTI instance that has the name of the class. Due to it being virtual, it will be the name of the most derived class.
Reimplemented from Burger::Decompress.
|
static |
Allocate and initialize a DecompressALaw.
|
overridevirtual |
Decompress audio data using alaw.
Input data is assumed to be alaw compressed bytes.
pOutput | Pointer to the buffer to accept the decompressed data |
uOutputChunkLength | Number of bytes in the output buffer |
pInput | Pointer to data to decompress |
uInputChunkLength | Number of bytes in the data to decompress |
Implements Burger::Decompress.
|
overridevirtual |
|
static |
The global description of the class.
This record contains the name of this class and a reference to the parent
|
static |
ALaw decompression lookup table.
|
protected |
State of the decompression.
|
protected |
Temp uncompressed data buffer.
|
protected |
Number of valid bytes in m_uCache.
|
static |
'alaw'