summaryrefslogtreecommitdiff
path: root/include/JSystem/JAudio/JASTrackInterrupt.h
blob: 711b317ccc4e4f473876f6da70808c1d21b656e2 (plain)
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
#ifndef JASTRACKINTERRUPT_H
#define JASTRACKINTERRUPT_H

#include "dolphin/types.h"

namespace JASystem {
    enum RequestId {
        REQUEST_UNK_0 = 0,
        REQUEST_UNK_1 = 1,
        REQUEST_UNK_2 = 2,
        REQUEST_UNK_3 = 3,
        REQUEST_UNK_4 = 4,
        REQUEST_UNK_5 = 5,
        REQUEST_UNK_6 = 6,
        REQUEST_UNK_7 = 7,
    };

    class TIntrMgr {
    public:
        void disable() { field_0x0 = 0; }
        void enable() { field_0x0 = 1; }
        void setTimer(u32 param_1, u32 param_2) {
            field_0x3 = param_1;
            field_0x4 = param_2;
            field_0x8 = param_2;
        }

        void init();
        void request(u32);
        void setIntr(u32, void*);
        void resetInter(u32);
        void* checkIntr();
        void timerProcess();

        /* 0x00 */ u8 field_0x0;
        /* 0x01 */ u8 field_0x1;
        /* 0x02 */ u8 field_0x2;
        /* 0x03 */ u8 field_0x3;
        /* 0x04 */ u32 field_0x4;
        /* 0x08 */ u32 field_0x8;
        /* 0x0C */ void* field_0xc[8];
    };
}

#endif /* JASTRACKINTERRUPT_H */