mirror of https://github.com/zeldaret/tp
59 lines
1.9 KiB
C++
59 lines
1.9 KiB
C++
#ifndef JAISE_H
|
|
#define JAISE_H
|
|
|
|
#include "JSystem/JAudio2/JAISeqDataMgr.h"
|
|
#include "JSystem/JAudio2/JASTrack.h"
|
|
|
|
class JAISeMgr;
|
|
|
|
/**
|
|
* @ingroup jsystem-jaudio
|
|
*
|
|
*/
|
|
class JAISe : public JSULink<JAISe>, public JASPoolAllocObject<JAISe>, public JAISound {
|
|
public:
|
|
class TInner {
|
|
public:
|
|
TInner() : mSeqData(NULL, 0) {}
|
|
|
|
/* 0x000 */ u32 mProperPriority;
|
|
/* 0x004 */ u32 mPriority;
|
|
/* 0x008 */ JASSoundParams mSoundParams;
|
|
/* 0x01c */ JASTrack track;
|
|
/* 0x264 */ JAISeqData mSeqData;
|
|
/* 0x26c */ u8 field_0x26c;
|
|
/* 0x270 */ JAISeMgr* seMgr;
|
|
/* 0x274 */ JAISoundStrategyMgr<JAISe>* mSoundStrategyMgr;
|
|
/* 0x278 */ JAISoundStrategyMgr__unknown<JAISe>* field_0x278;
|
|
/* 0x27c */ JAITempoMgr mTempoMgr;
|
|
};
|
|
|
|
virtual s32 getNumChild() const;
|
|
virtual JAISoundChild* getChild(int);
|
|
virtual void releaseChild(int);
|
|
virtual JASTrack* getTrack();
|
|
virtual JASTrack* getChildTrack(int);
|
|
virtual JAISe* asSe();
|
|
virtual JAITempoMgr* getTempoMgr();
|
|
virtual bool JAISound_tryDie_();
|
|
|
|
JAISe(JAISeMgr* seMgr, JAISoundStrategyMgr<JAISe>* soundStrategyMgr, u32 priority);
|
|
void mixOut_(const JASSoundParams& params);
|
|
void stopTrack_();
|
|
void startTrack_(const JASSoundParams& params);
|
|
void JAISeCategoryMgr_mixOut_(bool, const JASSoundParams& params, JAISoundActivity activity);
|
|
void JAISeCategoryMgr_calc_();
|
|
void JAISeMgr_startID_(JAISoundID id, const JGeometry::TVec3<f32>* posPtr, JAIAudience* audience);
|
|
bool prepare_getSeqData_();
|
|
void prepare_();
|
|
|
|
const JAISeqData* getSeqData() const { return &inner_.mSeqData; }
|
|
u32 JAISeCategoryMgr_getProperPriority_() const { return inner_.mProperPriority; }
|
|
u32 JAISeCategoryMgr_getPriority_() const { return inner_.mPriority; }
|
|
bool isFarAway() const { return inner_.mPriority == -1; }
|
|
|
|
/* 0x0ac */ TInner inner_;
|
|
};
|
|
|
|
#endif /* JAISE_H */
|