prime/include/MetroidPrime/ScriptObjects/CScriptMidi.hpp

30 lines
766 B
C++

#ifndef _CSCRIPTMIDI
#define _CSCRIPTMIDI
#include "MetroidPrime/CEntity.hpp"
#include "Kyoto/Audio/CMidiManager.hpp"
class CScriptMidi : public CEntity {
public:
CScriptMidi(TUniqueId id, const CEntityInfo& info, const rstl::string& name, bool active,
CAssetId csng, float, float, int);
~CScriptMidi();
void Stop(CStateManager& mgr, float fadeTime);
void Play(CStateManager& mgr, float fadeTime);
void Accept(IVisitor& visitor);
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr);
private:
TToken< CMidiManager::CMidiData > x34_song;
CSfxHandle x3c_handle;
float x40_fadeInTime;
float x44_fadeOutTime;
ushort x48_volume;
void StopInternal(float fadeTime);
};
#endif // _CSCRIPTMIDI