Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: Zap::VoiceDecoder Class Reference

# Zap::VoiceDecoder Class Reference

`#include <voiceCodec.h>`

Inheritance diagram for Zap::VoiceDecoder:

## Detailed Description

The VoiceDecoder class is an abstract base class for the various voice decompression algorithms supported by Zap - initially just the HawkVoice variable bitrate LPC10 codec.

It takes a buffer compressed with the appropriate VoiceEncoder analogue and returns the decompressed 16 bit sample buffer.

## Public Member Functions

ByteBufferPtr | decompressBuffer (ByteBufferRef compressedBuffer)

## Private Member Functions

virtual U32 | getSamplesPerFrame ()=0
virtual U32 | getAvgCompressedFrameSize ()=0
virtual U32 | decompressFrame (S16 *framePtr, U8 *inputPtr, U32 inSize)=0

## Member Function Documentation

virtual U32 Zap::VoiceDecoder::getSamplesPerFrame | ( |  | ) | `[private, pure virtual]`

Implemented in Zap::LPC10VoiceDecoder, and Zap::GSMVoiceDecoder.

virtual U32 Zap::VoiceDecoder::getAvgCompressedFrameSize | ( |  | ) | `[private, pure virtual]`

Implemented in Zap::LPC10VoiceDecoder, and Zap::GSMVoiceDecoder.

virtual U32 Zap::VoiceDecoder::decompressFrame | ( | S16 * | framePtr,
|  | U8 * | inputPtr,
|  | U32 | inSize |
| ) |  |  | `[private, pure virtual]`

Implemented in Zap::LPC10VoiceDecoder, and Zap::GSMVoiceDecoder.

ByteBufferPtr Zap::VoiceDecoder::decompressBuffer | ( | ByteBufferRef | compressedBuffer | ) |