GioMgr.h
1.15 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
#ifndef _AE_GioMgr_h
#define _AE_GioMgr_h
#include <ulocks.h>
#include "AudioApp.h"
#define PARAMS_PER_SECTION 8 // the number of parameters for each section of a
// custom effect.
class GioMgr
{
protected:
int u64fd;
usema_t *giosema;
usptr_t *gioarena;
int _ReadValue(int *valPtr);
int _loadblock(u8 *addr, u8 *data, u32 nBytes);
public:
GioMgr();
~GioMgr();
int LoadCode(void);
int InitAudio(AudioConfig *audCfg, u8 **bmemStart, u8 **bmemEnd, u8 **smemStart);
int SetBank(char *bnkfaddr, int bankNum);
int StartAudio(void);
int LoadMidi(CommPckt *commPckt);
int LoadBlock(u8 *addr, u8 *data, u32 nBytes);
int LoadChar(u8 *addr, u8 data);
int LoadWord(u8 *addr, u16 data);
int LoadLong(u8 *addr, u32 data);
int LoadSamples(u8 *addr, char *data,int nBytes);
int LoadInstVol(u8 *addr, int vol);
int LoadInstPan(u8 *addr, int pan);
int LoadInstPriority(u8 *addr, int priority);
int LoadInstBendRange(u8 *addr, int bendRange);
int LoadFXParam(int paramID, int paramVal);
};
#endif