mirror of
https://github.com/zeldaret/ss
synced 2026-09-10 03:52:24 -04:00
A bit of source manager maybe
This commit is contained in:
+2
-1
@@ -23,6 +23,7 @@
|
||||
#include "d/lyt/meter/d_lyt_meter.h"
|
||||
#include "d/lyt/msg_window/d_lyt_msg_window.h"
|
||||
#include "d/snd/d_snd_small_effect_mgr.h"
|
||||
#include "d/snd/d_snd_source_mgr.h"
|
||||
#include "egg/core/eggHeap.h"
|
||||
#include "f/f_base.h"
|
||||
#include "f/f_profile.h"
|
||||
@@ -198,7 +199,7 @@ void dFlow_c::playSound(u32 params) {
|
||||
return;
|
||||
}
|
||||
if (params >= 100) {
|
||||
fn_803858D0(ENEMY_BGM_RELATED_MGR);
|
||||
dSndSourceMgr_c::GetInstance()->playFlowSound(params);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
#include "d/snd/d_snd_source_mgr.h"
|
||||
|
||||
#include "common.h"
|
||||
#include "d/snd/d_snd_source.h"
|
||||
#include "nw4r/ut/ut_list.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
SND_DISPOSER_DEFINE(dSndSourceMgr_c);
|
||||
|
||||
dSndSourceMgr_c::dSndSourceMgr_c()
|
||||
: field_0x0010(0),
|
||||
field_0x0011(0),
|
||||
field_0x0012(0),
|
||||
field_0x0013(0),
|
||||
field_0x3860(0),
|
||||
field_0x3864(0),
|
||||
field_0x3868(0),
|
||||
field_0x386C(INFINITY),
|
||||
mpPlayerSource(nullptr),
|
||||
mpFiTalkSource(nullptr),
|
||||
field_0x3878(nullptr),
|
||||
field_0x387C(nullptr),
|
||||
field_0x3880(nullptr),
|
||||
field_0x3884(nullptr) {
|
||||
// TODO offsetof
|
||||
nw4r::ut::List_Init(&mGroupList1, 0);
|
||||
nw4r::ut::List_Init(&mGroupList2, 0);
|
||||
|
||||
// TODO figure out what these are for
|
||||
nw4r::ut::List_Init(&mGroupList3, 8);
|
||||
nw4r::ut::List_Init(&mSourceList1, 0xE8);
|
||||
nw4r::ut::List_Init(&field_0x3848, 0x15C);
|
||||
nw4r::ut::List_Init(&field_0x3854, 0x160);
|
||||
|
||||
mpDefaultGroup = new dSndSourceGroup_c(-1, "Default", 0, 0);
|
||||
|
||||
for (dSndSourceGroup_c *group = &mGroups[0]; group < &mGroups[NUM_GROUPS]; group++) {
|
||||
nw4r::ut::List_Append(&mGroupList2, group);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user