summaryrefslogtreecommitdiffstats
path: root/adpcm.h
blob: 48c0116ae83cd97a249dd56de13a18cb977962bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef ADPCM_H
#define ADPCM_H

#define IMA_ADPCM_BLOCK_SIZE 0x22
#define IMA_ADPCM_SAMPLES_PER_BLOCK 0x40

#define MS_ADPCM_BLOCK_SIZE 256
#define MS_ADPCM_SAMPLES_PER_BLOCK ((256 - 7) * 2)

int ima_adpcm_decode_block(unsigned short *output, unsigned char *input,
  int channels);
int ms_adpcm_decode_block(unsigned short *output, unsigned char *input,
  int channels);

#endif