CnfgMgr.h 694 Bytes

#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