SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
SoundEmitterCube.cpp
1#include "Game/AreaObj/SoundEmitterCube.hpp"
2#include "Game/AudioLib/AudAnmSoundObject.hpp"
3
4namespace {
5 const char *gSoundNameTable[4] = {
6 "SE_AT_LV_GRAVE",
7 "SE_AT_LV_KOOPA_WIND",
8 "SE_AT_LV_WIND_DESERT",
9 "SE_AT_LV_WIND_ICE_MT_TOP"
10 };
11}
12
13SoundEmitterCube::SoundEmitterCube(int type, const char *pName) : AreaObj(type, pName) {
14 mSoundObj = nullptr;
15 _40.x = 0.0f;
16 _40.y = 0.0f;
17 _40.z = 0.0f;
18 mSoundName = nullptr;
19}
20
21SoundEmitterCube::~SoundEmitterCube() {
22
23}
24
26 AreaObj::init(rIter);
27 mSoundName = gSoundNameTable[mObjArg0];
28 mSoundObj = new AudAnmSoundObject(&_40, 4, MR::getCurrentHeap());
29
30 MR::connectToSceneAreaObj(this);
31 MR::registerDemoSimpleCastAll(this);
32}
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.