#include <stdio.h>#include <inttypes.h>#include <memory.h>#include <stdlib.h>#include <tgmath.h>#include "g722.h"Defines | |
| #define | FALSE 0 |
| #define | TRUE (!FALSE) |
Functions | |
| g722_decode_state_t * | g722_decode_init (g722_decode_state_t *s, int rate, int options) |
| int | g722_decode_release (g722_decode_state_t *s) |
| int | g722_decode (g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[], int len) |
| int g722_decode | ( | g722_decode_state_t * | s, | |
| int16_t | amp[], | |||
| const uint8_t | g722_data[], | |||
| int | len | |||
| ) |
Decode a buffer of G.722 data to linear PCM.
| s | The G.722 context. | |
| amp | The audio sample buffer. | |
| g722_data | ||
| len |
| g722_decode_state_t* g722_decode_init | ( | g722_decode_state_t * | s, | |
| int | rate, | |||
| int | options | |||
| ) |
Initialise an G.722 decode context.
| s | The G.722 decode context. | |
| rate | The bit rate of the G.722 data. The valid rates are 64000, 56000 and 48000. | |
| options |
1.5.6