mirror of https://github.com/zeldaret/tp.git
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
//
|
|
// JAISoundStarter
|
|
//
|
|
|
|
#include "JSystem/JAudio2/JAISoundStarter.h"
|
|
#include "JSystem/JAudio2/JAISoundHandles.h"
|
|
|
|
/* 802A2F6C-802A2F88 29D8AC 001C+00 0/0 1/1 0/0 .text __ct__15JAISoundStarterFb */
|
|
JAISoundStarter::JAISoundStarter(bool param_0) : JASGlobalInstance<JAISoundStarter>(param_0) {
|
|
}
|
|
|
|
/* 802A2F88-802A2FEC 29D8C8 0064+00 1/0 7/7 0/0 .text __dt__15JAISoundStarterFv */
|
|
JAISoundStarter::~JAISoundStarter() {
|
|
}
|
|
|
|
/* 802A2FEC-802A30D4 29D92C 00E8+00 0/0 4/4 0/0 .text
|
|
* startLevelSound__15JAISoundStarterF10JAISoundIDP14JAISoundHandlePCQ29JGeometry8TVec3<f> */
|
|
bool JAISoundStarter::startLevelSound(JAISoundID param_0, JAISoundHandle* param_1,
|
|
JGeometry::TVec3<f32> const* param_2) {
|
|
if (*param_1) {
|
|
if (JAISoundID((u32)(*param_1)->soundID) == param_0) {
|
|
(*param_1)->updateLifeTime(1);
|
|
if (param_2 != NULL) {
|
|
(*param_1)->setPos(*param_2);
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
bool iVar2 = startSound(param_0, param_1, param_2);
|
|
if ((iVar2) && *param_1) {
|
|
(*param_1)->setLifeTime(1, false);
|
|
}
|
|
return iVar2;
|
|
}
|