News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

Zap::VoiceDecoder class Reference

Zap::VoiceDecoder Class Reference

#include <voiceCodec.h>

Inheritance diagram for Zap::VoiceDecoder:

TNL::Object Zap::GSMVoiceDecoder Zap::LPC10VoiceDecoder

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  )