Process 16 bit audio data in Little Endian format.
More...
|
const Burger::StaticRTTI * | get_StaticRTTI (void) const noexcept override |
| Get the description to the class.
|
|
| Decompress16BitLEAudio () |
| 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 little endian 16 bit words.
|
|
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.
|
|
| 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.
|
|
const char * | get_class_name (void) const noexcept |
| Get the name of the class.
|
|
virtual | ~Base () noexcept=default |
| Destructor.
|
|
Process 16 bit audio data in Little Endian format.
Convert 16 bit little endian audio data to native format
- See also
- Decompress16BitBEAudio, Decompress and DecompressAudio
◆ eState
Enumerator |
---|
STATE_INIT | Basic state.
|
STATE_FILLINGCACHE | Waiting for input data.
|
STATE_CACHEFULL | Cache is full, need to output before more input.
|
◆ Decompress16BitLEAudio()
Burger::Decompress16BitLEAudio::Decompress16BitLEAudio |
( |
| ) |
|
Default constructor.
Initializes the defaults
◆ get_StaticRTTI()
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.
- Returns
- Pointer to a global, read only instance of StaticRTTI for the true class
Reimplemented from Burger::Decompress.
◆ New()
◆ Process()
Burger::eError Burger::Decompress16BitLEAudio::Process |
( |
void * | pOutput, |
|
|
uintptr_t | uOutputChunkLength, |
|
|
const void * | pInput, |
|
|
uintptr_t | uInputChunkLength ) |
|
overridevirtual |
Decompress audio data using little endian 16 bit words.
Input data is assumed to be little endian 16 bit words. There is no decompression being performed.
- Parameters
-
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 |
- Returns
- Decompress::eError code with zero if no failure, non-zero is an error code
Implements Burger::Decompress.
◆ Reset()
◆ g_StaticRTTI
The global description of the class.
This record contains the name of this class and a reference to the parent
◆ m_Cache
uint8_t Burger::Decompress16BitLEAudio::m_Cache[2] |
|
protected |
Cache for data being swapped.
◆ m_eState
eState Burger::Decompress16BitLEAudio::m_eState |
|
protected |
◆ m_uCacheSize
uint_t Burger::Decompress16BitLEAudio::m_uCacheSize |
|
protected |
Number of bytes in the cache.
◆ Signature
const uint32_t Burger::Decompress16BitLEAudio::Signature = 0x4C453136 |
|
static |