Work on JAISeMgr (#368)

This commit is contained in:
hatal175
2023-07-12 00:59:33 -07:00
committed by GitHub
parent 018fdf29d6
commit ed40ffb064
33 changed files with 375 additions and 961 deletions
+13
View File
@@ -17,8 +17,16 @@ public:
JAISoundID() {}
bool isAnonymous() { return mId.mFullId == 0xffffffff; }
union {
u32 mFullId;
struct {
u8 b0;
u8 b1;
u8 b2;
u8 b3;
} mBytes;
struct {
u16 mSoundType;
u16 mShortId;
@@ -41,6 +49,7 @@ struct JAISoundStatus_ {
}
bool isAlive(); // used in assert
bool isDead() { return state.unk == 6;}
inline bool isPlaying() { return state.unk == 5; }
@@ -179,6 +188,10 @@ public:
return isStopping;
}
void pause(bool param_0) {
status_.field_0x0.flags.paused = param_0;
}
/* 0x04 */ JAISoundHandle* handle_;
/* 0x08 */ JAIAudible* audible_;
/* 0x0C */ JAIAudience* audience_;