#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_encode_state_t * | g722_encode_init (g722_encode_state_t *s, int rate, int options) |
int | g722_encode_release (g722_encode_state_t *s) |
int | g722_encode (g722_encode_state_t *s, uint8_t g722_data[], const int16_t amp[], int len) |
int g722_encode | ( | g722_encode_state_t * | s, | |
uint8_t | g722_data[], | |||
const int16_t | amp[], | |||
int | len | |||
) |
Encode a buffer of linear PCM data to G.722
s | The G.722 context. | |
g722_data | The G.722 data produced. | |
amp | The audio sample buffer. | |
len | The number of samples in the buffer. |
g722_encode_state_t* g722_encode_init | ( | g722_encode_state_t * | s, | |
int | rate, | |||
int | options | |||
) |
Initialise an G.722 encode context.
s | The G.722 encode context. | |
rate | The required bit rate for the G.722 data. The valid rates are 64000, 56000 and 48000. | |
options |