metaforce/Runtime/World/CScriptRoomAcoustics.hpp

46 lines
1.6 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2017-01-23 07:22:17 +00:00
#include <string_view>
#include "Runtime/RetroTypes.hpp"
#include "Runtime/World/CEntity.hpp"
#include <amuse/EffectChorus.hpp>
#include <amuse/EffectDelay.hpp>
#include <amuse/EffectReverb.hpp>
2017-01-23 07:22:17 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
2017-01-23 07:22:17 +00:00
2018-12-08 05:30:43 +00:00
class CScriptRoomAcoustics : public CEntity {
u32 x34_volumeScale;
2017-01-23 07:22:17 +00:00
2018-12-08 05:30:43 +00:00
bool x38_revHi, x39_revHiDis;
amuse::EffectReverbHiInfo x3c_revHiInfo;
2017-01-23 07:22:17 +00:00
2018-12-08 05:30:43 +00:00
bool x54_chorus;
amuse::EffectChorusInfo x58_chorusInfo;
2017-01-23 07:22:17 +00:00
2018-12-08 05:30:43 +00:00
bool x64_revStd, x65_revStdDis;
amuse::EffectReverbStdInfo x68_revStdInfo;
2017-01-23 07:22:17 +00:00
2018-12-08 05:30:43 +00:00
bool x7c_delay;
amuse::EffectDelayInfo x80_delayInfo;
2017-01-23 07:22:17 +00:00
public:
2018-12-08 05:30:43 +00:00
CScriptRoomAcoustics(TUniqueId uid, std::string_view name, const CEntityInfo& info, bool active, u32 volScale,
bool revHi, bool revHiDis, float revHiColoration, float revHiMix, float revHiTime,
float revHiDamping, float revHiPreDelay, float revHiCrosstalk, bool chorus, float baseDelay,
float variation, float period, bool revStd, bool revStdDis, float revStdColoration,
float revStdMix, float revStdTime, float revStdDamping, float revStdPreDelay, bool delay,
u32 delayL, u32 delayR, u32 delayS, u32 feedbackL, u32 feedbackR, u32 feedbackS, u32 outputL,
u32 outputR, u32 outputS);
void Think(float dt, CStateManager& stateMgr) override;
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
void Accept(IVisitor& visitor) override;
2018-12-08 05:30:43 +00:00
void EnableAuxCallbacks();
static void DisableAuxCallbacks();
2017-01-23 07:22:17 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce