Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oki_adpcm.h File Reference

Go to the source code of this file.

Typedefs

typedef oki_adpcm_state_s oki_adpcm_state_t

Functions

 SPAN_DECLARE (oki_adpcm_state_t *) oki_adpcm_init(oki_adpcm_state_t *s
 SPAN_DECLARE (int) oki_adpcm_release(oki_adpcm_state_t *s)
 Generate a sample of audio noise.

Variables

int bit_rate
int16_t amp []
int16_t const uint8_t oki_data []
int16_t const uint8_t int oki_bytes
uint8_t const int16_t int len


Detailed Description


Typedef Documentation

typedef struct oki_adpcm_state_s oki_adpcm_state_t
 

Oki (Dialogic) ADPCM conversion state descriptor. This defines the state of a single working instance of the Oki ADPCM converter. This is used for either linear to ADPCM or ADPCM to linear conversion.


Function Documentation

SPAN_DECLARE int32_t   ) 
 

Generate a sample of audio noise.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0

SPAN_DECLARE oki_adpcm_state_t  ) 
 

Initialise an Oki ADPCM encode or decode context.

Parameters:
s The Oki ADPCM context.
bit_rate The required bit rate for the ADPCM data. The valid rates are 24000 and 32000.
Returns:
A pointer to the Oki ADPCM context, or NULL for error.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1