Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASDSPChannel.h
Go to the documentation of this file.
1#ifndef JASDSPCHANNEL_H
2#define JASDSPCHANNEL_H
3
5
10struct JASDSPChannel {
11 typedef s32 (*Callback)(u32, JASDsp::TChannel*, void*);
12
13 enum Status {
16 /* 2 */ STATUS_DROP,
17 };
18
20 /* 0 */ CB_PLAY,
21 /* 1 */ CB_START,
22 /* 2 */ CB_STOP,
23 /* 3 */ CB_DROP,
24 };
25
26 /* 8029D2F4 */ JASDSPChannel();
27 /* 8029D320 */ void free();
28 /* 8029D330 */ void start();
29 /* 8029D340 */ void drop();
30 /* 8029D534 */ void setPriority(u8);
31 /* 8029D65C */ void updateProc();
32
33 /* 8029D3C8 */ static void initAll();
34 /* 8029D44C */ static JASDSPChannel* alloc(u8, Callback, void*);
35 /* 8029D4BC */ static JASDSPChannel* allocForce(u8, Callback, void*);
36 /* 8029D540 */ static JASDSPChannel* getLowestChannel(int);
37 /* 8029D5D0 */ static JASDSPChannel* getLowestActiveChannel();
38 /* 8029D89C */ static void updateAll();
39 /* 8029D910 */ static int killActiveChannel();
40 /* 8029D948 */ static JASDSPChannel* getHandle(u32);
41
43
44 /* 0x00 */ s32 mStatus;
45 /* 0x04 */ s16 mPriority;
46 /* 0x08 */ u32 mFlags;
47 /* 0x0C */ u32 field_0xc;
48 /* 0x10 */ Callback mCallback;
49 /* 0x14 */ void* mCallbackData;
51}; // Size: 0x1C
52
53#endif /* JASDSPCHANNEL_H */
Definition JASAudioReseter.cpp:16
static JASDSPChannel * getHandle(u32)
static JASDSPChannel * sDspChannels
Definition JASDSPChannel.h:42
s32(* Callback)(u32, JASDsp::TChannel *, void *)
Definition JASDSPChannel.h:11
JASDSPChannel()
Definition JASDSPChannel.cpp:14
u32 mFlags
Definition JASDSPChannel.h:46
CallbackType
Definition JASDSPChannel.h:19
@ CB_START
Definition JASDSPChannel.h:21
@ CB_DROP
Definition JASDSPChannel.h:23
@ CB_STOP
Definition JASDSPChannel.h:22
@ CB_PLAY
Definition JASDSPChannel.h:20
static JASDSPChannel * allocForce(u8, Callback, void *)
Definition JASDSPChannel.cpp:77
void updateProc()
Definition JASDSPChannel.cpp:147
static JASDSPChannel * alloc(u8, Callback, void *)
Definition JASDSPChannel.cpp:62
Status
Definition JASDSPChannel.h:13
@ STATUS_DROP
Definition JASDSPChannel.h:16
@ STATUS_ACTIVE
Definition JASDSPChannel.h:14
@ STATUS_INACTIVE
Definition JASDSPChannel.h:15
Callback mCallback
Definition JASDSPChannel.h:48
void start()
Definition JASDSPChannel.cpp:33
s32 mStatus
Definition JASDSPChannel.h:44
JASDsp::TChannel * mChannel
Definition JASDSPChannel.h:50
s16 mPriority
Definition JASDSPChannel.h:45
void * mCallbackData
Definition JASDSPChannel.h:49
static void updateAll()
Definition JASDSPChannel.cpp:224
void free()
Definition JASDSPChannel.cpp:27
static void initAll()
Definition JASDSPChannel.cpp:53
static JASDSPChannel * getLowestActiveChannel()
Definition JASDSPChannel.cpp:123
static JASDSPChannel * getLowestChannel(int)
Definition JASDSPChannel.cpp:98
static int killActiveChannel()
Definition JASDSPChannel.cpp:235
void setPriority(u8)
Definition JASDSPChannel.cpp:92
u32 field_0xc
Definition JASDSPChannel.h:47
Definition JASDSPInterface.h:32
unsigned long u32
Definition types.h:10
signed short s16
Definition types.h:5
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8