29 #ifndef SPATIAL_PLAYER_H 30 #define SPATIAL_PLAYER_H 33 #include "scene/3d/spatial.h" 34 #include "scene/main/node.h" 35 #include "scene/resources/sample_library.h" 36 #include "servers/spatial_sound_server.h" 37 #include "scene/main/viewport.h" 47 PARAM_VOLUME_DB=SpatialSoundServer::SOURCE_PARAM_VOLUME_DB,
48 PARAM_PITCH_SCALE=SpatialSoundServer::SOURCE_PARAM_PITCH_SCALE,
49 PARAM_ATTENUATION_MIN_DISTANCE=SpatialSoundServer::SOURCE_PARAM_ATTENUATION_MIN_DISTANCE,
50 PARAM_ATTENUATION_MAX_DISTANCE=SpatialSoundServer::SOURCE_PARAM_ATTENUATION_MAX_DISTANCE,
51 PARAM_ATTENUATION_DISTANCE_EXP=SpatialSoundServer::SOURCE_PARAM_ATTENUATION_DISTANCE_EXP,
52 PARAM_EMISSION_CONE_DEGREES=SpatialSoundServer::SOURCE_PARAM_EMISSION_CONE_DEGREES,
53 PARAM_EMISSION_CONE_ATTENUATION_DB=SpatialSoundServer::SOURCE_PARAM_EMISSION_CONE_ATTENUATION_DB,
54 PARAM_MAX=SpatialSoundServer::SOURCE_PARAM_MAX
59 float params[PARAM_MAX];
62 virtual bool _can_gizmo_scale()
const;
63 virtual RES _get_gizmo_geometry()
const;
68 _FORCE_INLINE_
RID get_source_rid()
const {
return source_rid; }
70 void _notification(
int p_what);
72 static void _bind_methods();
76 void set_param( Param p_param,
float p_value);
77 float get_param( Param p_param)
const;
86 VARIANT_ENUM_CAST( SpatialPlayer::Param );
87 #endif // SPATIAL_PLAYER_H
Definition: spatial_player.h:39