29 #ifndef SPATIAL_SAMPLE_PLAYER_H 30 #define SPATIAL_SAMPLE_PLAYER_H 32 #include "scene/3d/spatial_player.h" 33 #include "scene/resources/sample_library.h" 34 #include "servers/spatial_sound_server.h" 43 INVALID_VOICE=SpatialSoundServer::SOURCE_INVALID_VOICE,
44 NEXT_VOICE=SpatialSoundServer::SOURCE_NEXT_VOICE
61 void _notification(
int p_what);
62 static void _bind_methods();
69 void set_polyphony(
int p_voice_count);
70 int get_polyphony()
const;
72 VoiceID play(
const String& p_sample,
int p_voice=NEXT_VOICE);
74 void voice_set_pitch_scale(VoiceID p_voice,
float p_pitch_scale);
75 void voice_set_volume_scale_db(VoiceID p_voice,
float p_volume_db);
77 bool is_voice_active(VoiceID p_voice)
const;
78 void stop_voice(VoiceID p_voice);
89 #endif // SPATIAL_SAMPLE_PLAYER_H
Definition: string_db.h:48
Definition: spatial_sample_player.h:36
Definition: spatial_player.h:39