AeBankFile.h
1.41 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef __AeBankFile__
#define __AeBankFile__
#include "libaudioNONULL.h"
#include <PR/audiotools.h>
#include "Hash.h"
#include "AeFile.h"
class AeAsset;
class AeBankFileAsset;
class AeBankAsset;
class AeInstAsset;
class AeSoundAsset;
class AeEnvAsset;
class AeKeymapAsset;
class AeWaveAsset;
class AeLoopAsset;
class AeBookAsset;
class AeFxAsset;
class AeN64Config;
enum
{
FILE_NOT_SUPPORTED = -2,
FILE_FAILURE = -1,
FILE_OK = 0,
NO_FILE = 1
};
class AeBankFile : public AeAssetFile
{
public:
AeBankFile (char *);
virtual ~AeBankFile (void);
virtual int Read (AeAsset *&);
private:
int read (AeAsset *&);
void readBankFile (AeBankFileAsset *, int);
void readBank (AeBankAsset *, int);
void readInst (AeInstAsset *, int);
void readSound (AeSoundAsset *, int);
void readKeymap (AeKeymapAsset *, int);
void readEnvlp (AeEnvAsset *, int);
void readWave (AeWaveAsset *, int);
void readLoop (AeLoopAsset *, int);
void readADPCMLoop (AeADPCMLoopAsset *, int);
void readADPCMBook (AeADPCMBookAsset *, int);
ALSymFile * fSymData;
int fSymSize;
ALBankFile * fCtlData;
int fCtlSize;
u8 * fTblData;
int fTblSize;
HashTable * fHashTbl;
};
#endif