Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Alaw Class Reference

Static utility class for converting between Alaw and linear PCM sound. More...

#include <alaw.h>

List of all members.

Static Public Member Functions

void conv_u8bit_alaw (unsigned char *src_ptr, unsigned char *dst_ptr, size_t size)
void conv_s8bit_alaw (unsigned char *src_ptr, unsigned char *dst_ptr, size_t size)
void conv_s16bit_alaw (unsigned short *src_ptr, unsigned char *dst_ptr, size_t size)
void conv_u16bit_alaw (unsigned short *src_ptr, unsigned char *dst_ptr, size_t size)

Static Private Member Functions

unsigned char linear2alaw (int pcm_val)
int search (int val, const short *table, int size)


Detailed Description

Static utility class for converting between Alaw and linear PCM sound.

Definition at line 11 of file alaw.h.


Member Function Documentation

void Alaw::conv_s16bit_alaw unsigned short *  src_ptr,
unsigned char *  dst_ptr,
size_t  size
[static]
 

Definition at line 123 of file alaw.cpp.

References linear2alaw().

void Alaw::conv_s8bit_alaw unsigned char *  src_ptr,
unsigned char *  dst_ptr,
size_t  size
[static]
 

Definition at line 113 of file alaw.cpp.

References linear2alaw().

void Alaw::conv_u16bit_alaw unsigned short *  src_ptr,
unsigned char *  dst_ptr,
size_t  size
[static]
 

Definition at line 137 of file alaw.cpp.

References linear2alaw().

void Alaw::conv_u8bit_alaw unsigned char *  src_ptr,
unsigned char *  dst_ptr,
size_t  size
[static]
 

Definition at line 103 of file alaw.cpp.

References linear2alaw().

unsigned char Alaw::linear2alaw int  pcm_val  )  [inline, static, private]
 

Definition at line 72 of file alaw.cpp.

References alaw_seg_end, NSEGS, QUANT_MASK, search(), and SEG_SHIFT.

Referenced by conv_s16bit_alaw(), conv_s8bit_alaw(), conv_u16bit_alaw(), and conv_u8bit_alaw().

int Alaw::search int  val,
const short *  table,
int  size
[inline, static, private]
 

Definition at line 42 of file alaw.cpp.

Referenced by linear2alaw().


The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:31:52 2005 for Esidplay by doxygen 1.3.3