2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-01-23 07:22:17 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/World/CEntity.hpp"
|
|
|
|
|
2023-10-22 16:21:20 +00:00
|
|
|
//#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
|
|
|
|
2023-10-22 16:21:20 +00:00
|
|
|
// bool x38_revHi, x39_revHiDis;
|
|
|
|
// amuse::EffectReverbHiInfo x3c_revHiInfo;
|
|
|
|
//
|
|
|
|
// bool x54_chorus;
|
|
|
|
// amuse::EffectChorusInfo x58_chorusInfo;
|
|
|
|
//
|
|
|
|
// bool x64_revStd, x65_revStdDis;
|
|
|
|
// amuse::EffectReverbStdInfo x68_revStdInfo;
|
|
|
|
//
|
|
|
|
// bool x7c_delay;
|
|
|
|
// amuse::EffectDelayInfo x80_delayInfo;
|
2017-01-23 07:22:17 +00:00
|
|
|
|
|
|
|
public:
|
2021-05-26 14:00:57 +00:00
|
|
|
DEFINE_ENTITY
|
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);
|
2019-08-09 12:45:18 +00:00
|
|
|
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
|