File: adpcm.h

package info (click to toggle)
audiofile 0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,192 kB
  • sloc: cpp: 31,691; sh: 11,006; ansic: 3,773; makefile: 271
file content (31 lines) | stat: -rw-r--r-- 575 bytes parent folder | download
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 */