#include <stdlib.h>#include <inttypes.h>#include <string.h>#include "spandsp/telephony.h"#include "spandsp/dc_restore.h"#include "spandsp/ima_adpcm.h"Functions | |
| ima_adpcm_state_t * | ima_adpcm_init (ima_adpcm_state_t *s, int variant) |
| int | ima_adpcm_release (ima_adpcm_state_t *s) |
| int | ima_adpcm_decode (ima_adpcm_state_t *s, int16_t amp[], const uint8_t ima_data[], int ima_bytes) |
| int | ima_adpcm_encode (ima_adpcm_state_t *s, uint8_t ima_data[], const int16_t amp[], int len) |
| int ima_adpcm_decode | ( | ima_adpcm_state_t * | s, | |
| int16_t | amp[], | |||
| const uint8_t | ima_data[], | |||
| int | ima_bytes | |||
| ) |
Decode a buffer of IMA ADPCM data to linear PCM.
| s | The IMA ADPCM context. | |
| amp | The audio sample buffer. | |
| ima_data | ||
| ima_bytes |
| int ima_adpcm_encode | ( | ima_adpcm_state_t * | s, | |
| uint8_t | ima_data[], | |||
| const int16_t | amp[], | |||
| int | len | |||
| ) |
Encode a buffer of linear PCM data to IMA ADPCM.
| s | The IMA ADPCM context. | |
| ima_data | The IMA ADPCM data produced. | |
| amp | The audio sample buffer. | |
| len | The number of samples in the buffer. |
| ima_adpcm_state_t* ima_adpcm_init | ( | ima_adpcm_state_t * | s, | |
| int | variant | |||
| ) |
Initialise an IMA ADPCM encode or decode context.
| s | The IMA ADPCM context | |
| variant | ??? |
| int ima_adpcm_release | ( | ima_adpcm_state_t * | s | ) |
Free an IMA ADPCM encode or decode context.
| s | The IMA ADPCM context. |
1.5.2