blob: 1754949ae96a07412d6cd14fb2a21640285ac15a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef SOUND_INFO_H
#define SOUND_INFO_H
#include "m/m_vec.h"
#include "d/snd/d_snd_source_if.h"
#include "toBeSorted/raii_ptr.h"
#include "toBeSorted/tlist.h"
class dAcBase_c;
class cBgS_PolyInfo;
class SoundInfo {
private:
/* 0x00 */ dAcBase_c *mpActor;
/* 0x04 */ RaiiPtr<dSoundSourceIf_c> mpSource;
/* 0x08 */ const mVec3_c *mpPosPtr;
/* 0x0C */ TListNode<SoundInfo> mLink;
public:
SoundInfo(dAcBase_c *ac);
/* vtable at 0x14 */
virtual ~SoundInfo();
dSoundSourceIf_c *getSource() {
return mpSource.get();
}
void calc() {
mpSource->calc(*mpPosPtr);
}
bool initSource(s32 sourceType, const char *name, const mVec3_c *posPtr);
bool startBgHitSound(u32 soundId, const cBgS_PolyInfo &info, const mVec3_c *position);
};
#endif
|