adpcm.h 380 B

1234567891011121314151617
  1. // define the global val for the adpcm coder
  2. typedef struct {
  3. short valprev;
  4. unsigned char index;
  5. unsigned char reserved;
  6. }adpcm_state;
  7. void adpcm_decoder(char indata[], short outdata[], int len, adpcm_state *state, int avi_flag);
  8. typedef struct {
  9. int dwSamples_per_sec;
  10. int wChannels;
  11. } wave_head_t;
  12. typedef struct {
  13. wave_head_t wave_h;
  14. adpcm_state state;
  15. } wave_dec_t;