29 #ifndef SOUND_ROOM_PARAMS_H 30 #define SOUND_ROOM_PARAMS_H 32 #include "scene/main/node.h" 33 #include "servers/spatial_sound_server.h" 38 #include "scene/3d/room_instance.h" 45 PARAM_SPEED_OF_SOUND_SCALE=SpatialSoundServer::ROOM_PARAM_SPEED_OF_SOUND_SCALE,
46 PARAM_DOPPLER_FACTOR=SpatialSoundServer::ROOM_PARAM_DOPPLER_FACTOR,
47 PARAM_PITCH_SCALE=SpatialSoundServer::ROOM_PARAM_PITCH_SCALE,
48 PARAM_VOLUME_SCALE_DB=SpatialSoundServer::ROOM_PARAM_VOLUME_SCALE_DB,
49 PARAM_REVERB_SEND=SpatialSoundServer::ROOM_PARAM_REVERB_SEND,
50 PARAM_CHORUS_SEND=SpatialSoundServer::ROOM_PARAM_CHORUS_SEND,
51 PARAM_ATTENUATION_SCALE=SpatialSoundServer::ROOM_PARAM_ATTENUATION_SCALE,
52 PARAM_ATTENUATION_HF_CUTOFF=SpatialSoundServer::ROOM_PARAM_ATTENUATION_HF_CUTOFF,
53 PARAM_ATTENUATION_HF_FLOOR_DB=SpatialSoundServer::ROOM_PARAM_ATTENUATION_HF_FLOOR_DB,
54 PARAM_ATTENUATION_HF_RATIO_EXP=SpatialSoundServer::ROOM_PARAM_ATTENUATION_HF_RATIO_EXP,
55 PARAM_ATTENUATION_REVERB_SCALE=SpatialSoundServer::ROOM_PARAM_ATTENUATION_REVERB_SCALE,
56 PARAM_MAX=SpatialSoundServer::ROOM_PARAM_MAX
69 float params[PARAM_MAX];
71 bool force_params_for_all_sources;
72 void _update_sound_room();
77 void _notification(
int p_what);
78 static void _bind_methods();
83 void set_param(Params p_param,
float p_value);
84 float get_param(Params p_param)
const;
86 void set_reverb_mode(Reverb p_mode);
87 Reverb get_reverb_mode()
const;
89 void set_force_params_to_all_sources(
bool p_force);
90 bool is_forcing_params_to_all_sources();
95 VARIANT_ENUM_CAST(SoundRoomParams::Params);
96 VARIANT_ENUM_CAST(SoundRoomParams::Reverb);
100 #endif // SOUND_ROOM_PARAMS_H
Definition: sound_room_params.h:39