CnfgMgr.h
694 Bytes
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
#ifndef _AE_CnfgMgr_h
#define _AE_CnfgMgr_h
#include "AudioApp.h"
#include "Assets.h"
#define MAX_PARAM_LENGTH 32
#define TOKEN_FAIL 0
#define TOKEN_PARAM_VALUE 1
#define TOKEN_FX_VALUE 2
#define TOKEN_STRING 3
#define TOKEN_VALUE 4
class CnfgMgr
{
protected:
char *dataCur, *dataEnd;
int customFXOK;
AEReverb *reverbAsset;
int ConfigFromFile(AudioConfig *audCnfg, char *fName);
int GetToken(char **tHdl, int *val);
int HexValue(char c);
int ParamCmp(char *s1, char *s2);
public:
CnfgMgr();
int SetAudConfig(AudioConfig *audCnfg, char *fName);
};
#endif