summaryrefslogtreecommitdiff
path: root/include/JSystem/JAudio/JASCmdStack.h
blob: 240e2fe05ed323724788b81622cb9dd180674bf5 (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
46
47
48
49
50
51
52
53
54
#ifndef JASCMDSTACK_H
#define JASCMDSTACK_H

#include "JSystem/JAudio/JASTrack.h"
#include "dolphin/types.h"

namespace JASystem {
    namespace Kernel {
        class TPortArgs {
        public:
            /* 0x00 */ TTrack* mTrack;
            /* 0x04 */ u32 mFlags;
            /* 0x08 */ f32 mTrackVolume;
            /* 0x0C */ f32 mTrackPitch;
            /* 0x10 */ f32 mTrackPan;
            /* 0x14 */ f32 mTrackFxmix;
            /* 0x18 */ f32 mTrackDolby;
            /* 0x1C */ f32 _1C;
            /* 0x20 */ u32 _20;
            /* 0x24 */ f32 mTrackTempo;
        };

        class TPortCmd;

        class TPortHead {
        public:
            /* 0x00 */ TPortCmd* field_0x0;
            /* 0x04 */ TPortCmd* field_0x4;
        };

        class TPortCmd {
        public:
            TPortCmd();
            ~TPortCmd() {}
            bool addPortCmdOnce();
            bool setPortCmd(void (*)(TPortArgs*), TPortArgs*);
            bool addPortCmd(TPortHead*);

            /* 0x00 */ TPortHead* field_0x0;
            /* 0x04 */ TPortCmd* field_0x4;
            /* 0x08 */ void (*field_0x8)(TPortArgs*);
            /* 0x0C */ TPortArgs* field_0xc;
        };

        void portCmdProcOnce(TPortHead*);
        void portCmdProcStay(TPortHead*);
        void portHeadInit(TPortHead*);
        void portCmdInit();
        TPortCmd* getPortCmd(TPortHead*);
        s32 portCmdMain(void*);
    }
}

#endif /* JASCMDSTACK_H */