2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-01-23 07:22:17 +00:00
|
|
|
|
|
|
|
#include "CEntity.hpp"
|
|
|
|
#include "amuse/EffectChorus.hpp"
|
|
|
|
#include "amuse/EffectDelay.hpp"
|
|
|
|
#include "amuse/EffectReverb.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
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);
|
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
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|