1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/*
** adpcm.h - include file for adpcm coder.
**
** Version 1.0, 7-Jul-92.
*/
#ifndef ADPCM_H
#define ADPCM_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
struct adpcm_state
{
int16_t valprev; /* Previous output value */
uint8_t index; /* Index into step size table */
};
void _af_adpcm_coder (const int16_t *src, uint8_t *dst, int frameCount,
int channelCount, struct adpcm_state *);
void _af_adpcm_decoder (const uint8_t *src, int16_t *dst, int frameCount,
int channelCount, struct adpcm_state *);
#ifdef __cplusplus
}
#endif
#endif /* ADPCM_H */
|