SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
SoundEmitterSphere.cpp
1#include "Game/AreaObj/SoundEmitterSphere.hpp"
2#include "Game/AudioLib/AudAnmSoundObject.hpp"
3
4namespace {
5 const char *gSoundNameTable[6] = {
6 "SE_AT_LV_MAGMA_AMBIENT",
7 "SE_OJ_LV_FLOATING_SAND",
8 "SE_AT_LV_WIND_DESERT",
9 "SE_AT_LV_MAGMA_WIND_VOLCANO",
10 "SE_AT_LV_KOOPA_FLOAT_SAND",
11 "SE_AT_LV_WIND_RABBIT_MAZE"
12 };
13}
14
15SoundEmitterSphere::SoundEmitterSphere(int type, const char *pName) : AreaObj(type, pName) {
16 mSoundObj = nullptr;
17 _40.x = 0.0f;
18 _40.y = 0.0f;
19 _40.z = 0.0f;
20 mSoundName = nullptr;
21 mSoundIndex = 0;
22}
23
24SoundEmitterSphere::~SoundEmitterSphere() {
25
26}
27
29 AreaObj::init(rIter);
30 mSoundName = gSoundNameTable[mObjArg0];
31 mSoundIndex = mObjArg0;
32 mSoundObj = new AudAnmSoundObject(&_40, 4, MR::getCurrentHeap());
33
34 MR::connectToSceneAreaObj(this);
35 MR::registerDemoSimpleCastAll(this);
36}
37
38void SoundEmitterSphere::movement() {
39
40}
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition AreaObj.cpp:41
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.