29 #ifndef SOUND_PLAYER_2D_H 30 #define SOUND_PLAYER_2D_H 33 #include "scene/2d/node_2d.h" 34 #include "scene/resources/sample_library.h" 35 #include "servers/spatial_sound_2d_server.h" 36 #include "scene/main/viewport.h" 46 PARAM_VOLUME_DB=SpatialSound2DServer::SOURCE_PARAM_VOLUME_DB,
47 PARAM_PITCH_SCALE=SpatialSound2DServer::SOURCE_PARAM_PITCH_SCALE,
48 PARAM_ATTENUATION_MIN_DISTANCE=SpatialSound2DServer::SOURCE_PARAM_ATTENUATION_MIN_DISTANCE,
49 PARAM_ATTENUATION_MAX_DISTANCE=SpatialSound2DServer::SOURCE_PARAM_ATTENUATION_MAX_DISTANCE,
50 PARAM_ATTENUATION_DISTANCE_EXP=SpatialSound2DServer::SOURCE_PARAM_ATTENUATION_DISTANCE_EXP,
51 PARAM_MAX=SpatialSound2DServer::SOURCE_PARAM_MAX
56 float params[PARAM_MAX];
62 _FORCE_INLINE_
RID get_source_rid()
const {
return source_rid; }
64 void _notification(
int p_what);
66 static void _bind_methods();
70 void set_param( Param p_param,
float p_value);
71 float get_param( Param p_param)
const;
80 VARIANT_ENUM_CAST(SoundPlayer2D::Param );
82 #endif // SOUND_PLAYER_2D_H
Definition: sound_player_2d.h:38