dSndSourceMgr_c::createSource OK

This commit is contained in:
robojumper
2025-06-28 09:58:43 +02:00
parent 36115277a4
commit ba0f29f410
10 changed files with 87 additions and 13 deletions
+2
View File
@@ -6,6 +6,8 @@
class dSndSourceDemo_c : public dSndSourceAnimSound_c {
public:
dSndSourceDemo_c(s32 sourceType, dAcBase_c *ac, const char *name, dSndSourceGroup_c *pOwnerGroup);
/* 0x200 */ u8 _0x200[0x204 - 0x200];
};
#endif
+34
View File
@@ -20,6 +20,7 @@ public:
/* 0x1F8 */ virtual void d_s_harp_vt_0x1F8();
private:
/* 0x15C */ u8 _0x15C[0x1BC - 0x15C];
};
class dSndSourceHarpTg_c : public dSndSourceHarpRelated_c {
@@ -30,4 +31,37 @@ public:
private:
};
class dSndSourceHarpObjWarp_c : public dSndSourceHarpRelated_c {
public:
dSndSourceHarpObjWarp_c(s32 sourceType, dAcBase_c *ac, const char *name, dSndSourceGroup_c *pOwnerGroup)
: dSndSourceHarpRelated_c(sourceType, ac, name, pOwnerGroup) {}
/* 0x188 */ virtual void postSetup() override;
/* 0x18C */ virtual void postCalc() override;
private:
};
class dSndSourceHarpSwHarp_c : public dSndSourceHarpRelated_c {
public:
dSndSourceHarpSwHarp_c(s32 sourceType, dAcBase_c *ac, const char *name, dSndSourceGroup_c *pOwnerGroup)
: dSndSourceHarpRelated_c(sourceType, ac, name, pOwnerGroup) {}
/* 0x188 */ virtual void postSetup() override;
/* 0x18C */ virtual void postCalc() override;
private:
};
class dSndSourceHarpSwHarp4_c : public dSndSourceHarpRelated_c {
public:
dSndSourceHarpSwHarp4_c(s32 sourceType, dAcBase_c *ac, const char *name, dSndSourceGroup_c *pOwnerGroup);
/* 0x188 */ virtual void postSetup() override;
/* 0x18C */ virtual void postCalc() override;
private:
/* 0x1BC */ u8 _0x1BC[0x210 - 0x1BC];
};
#endif
+1 -1
View File
@@ -66,7 +66,7 @@ private:
void clearSourceLists();
void clearSourceList(nw4r::ut::List *list);
dSndSourceGroup_c *findGroup(s32 sourceType, dAcBase_c *actor, const char *name, const char *origName, u8 subtype);
dSndSourceGroup_c *getGroup(s32 sourceType, dAcBase_c *actor, const char *name, const char *origName, u8 subtype);
bool fn_803846D0(s32 sourceType, const char *name, u8 subtype);
/* 0x0010 */ u8 field_0x0010;
+2
View File
@@ -9,6 +9,7 @@ public:
dSndSourceNpcSpecial_c(s32 sourceType, dAcBase_c *ac, const char *name, dSndSourceGroup_c *pOwnerGroup);
private:
/* 0x200 */ u8 _0x200[0x204 - 0x200];
};
class dSndSourceNpcDr_c : public dSndSourceNpcSpecial_c {
@@ -16,6 +17,7 @@ public:
dSndSourceNpcDr_c(s32 sourceType, dAcBase_c *ac, const char *name, dSndSourceGroup_c *pOwnerGroup);
private:
/* 0x204 */ u8 _0x204[0x20C - 0x204];
};
#endif
+2
View File
@@ -6,6 +6,8 @@
class dSndSourcePlayer_c : public dSndSourceAnimSound_c {
public:
dSndSourcePlayer_c(s32 sourceType, dAcBase_c *ac, const char *name, dSndSourceGroup_c *pOwnerGroup);
/* 0x200 */ u8 _0x200[0x238 - 0x200];
};
#endif
+2
View File
@@ -6,6 +6,8 @@
class dSndSourcePlayerHead_c : public dSoundSource_c {
public:
dSndSourcePlayerHead_c(s32 sourceType, dAcBase_c *ac, const char *name, dSndSourceGroup_c *pOwnerGroup);
/* 0x15C */ u8 _0x15C[0x22B0 - 0x15C];
};
#endif
+3
View File
@@ -6,6 +6,9 @@
class dSndSourceTgSound_c : public dSoundSource_c {
public:
dSndSourceTgSound_c(s32 sourceType, dAcBase_c *ac, const char *name, dSndSourceGroup_c *pOwnerGroup);
private:
/* 0x15C */ u8 _0x15C[0x164 - 0x15C];
};
#endif
+3
View File
@@ -83,6 +83,9 @@ public:
bool isInDemo() const {
return getCurrentStageMusicDemoName() != nullptr;
}
// not sure, subtype is unused
bool isActiveDemoMaybe(s32 subtype) const;
bool isInEvent(const char *eventName);
private: