GioMgr.h
1.32 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
#ifndef _AE_GioMgr_h
#define _AE_GioMgr_h
#include <ulocks.h>
#include "n64.h"
#include "AeErr.h"
class AeN64Config;
class GioMgr
{
public:
GioMgr (void);
~GioMgr (void);
AeErr LoadCode(void);
AeErr InitAudio (AeN64Config *, int * pFxParams, int nFxParams,
u8 **bmemStart, u8 **bmemEnd, u8 **smemStart);
AeErr StartAudio (void);
AeErr StopAudio (void);
AeErr SetBank (char *bnkfaddr, int bankNum);
AeErr LoadMidi (CommPckt *commPckt);
AeErr LoadBlock (u8 *addr, u8 *data, u32 nBytes);
AeErr LoadChar (u8 *addr, u8 data);
AeErr LoadWord (u8 *addr, u16 data);
AeErr LoadLong (u8 *addr, u32 data);
AeErr LoadSamples (u8 *addr, char *data,int nBytes);
AeErr LoadFXParam (int paramID, int paramVal);
AeErr LoadFXSectionParams (int paramID, int * params);
protected:
AeErr initFx (AeN64Config *, int * pFxParams, int nFxParams, int * pFxSize);
AeErr readValue (int *valPtr);
AeErr writeBlock (u8 *addr, u8 *data, u32 nBytes);
AeErr writePacket (CommPckt *);
AeErr writePacketAndData (CommPckt *, u8 * pData, u32 nData);
int fU64fd;
usema_t * fGiosema;
usptr_t * fGioarena;
u8 * fCodeEnd;
u8 * fBootRomEnd;
u8 * fRdramEnd;
};
#endif