File: RARAudioDecoder.h

package info (click to toggle)
unar 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,664 kB
  • sloc: ansic: 52,939; objc: 39,563; cpp: 4,074; makefile: 99; perl: 10
file content (27 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (5)
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
#ifndef __RARAUDIODECODER_H__
#define __RARAUDIODECODER_H__

typedef struct RAR20AudioState
{
	int weight1,weight2,weight3,weight4,weight5;
	int delta1,delta2,delta3,delta4;
	int lastdelta;
	int error[11];
	int count;
	int lastbyte;
} RAR20AudioState;

typedef struct RAR30AudioState
{
	int weight1,weight2,weight3,weight4,weight5;
	int delta1,delta2,delta3,delta4;
	int lastdelta;
	int error[7];
	int count;
	int lastbyte;
} RAR30AudioState;

int DecodeRAR20Audio(RAR20AudioState *state,int *channeldelta,int delta);
int DecodeRAR30Audio(RAR30AudioState *state,int delta);

#endif