diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-02-01 14:26:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-01 14:26:27 +0100 |
commit | ff287d8341774750b7141f364de1087f48b14699 (patch) | |
tree | 975d75ee3c6e54959af314b408840ca9650dc347 /scene/3d/audio_stream_player_3d.h | |
parent | 6449af9f746b6328c7791e87b70b56eb74d8a9b9 (diff) | |
parent | 5bc010e8eeef71ad9a9034bd16df454a9933592a (diff) |
Merge pull request #15254 from mrcdk/pitch_scale
Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D
Diffstat (limited to 'scene/3d/audio_stream_player_3d.h')
-rw-r--r-- | scene/3d/audio_stream_player_3d.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/audio_stream_player_3d.h b/scene/3d/audio_stream_player_3d.h index 9a1f369da2..1fcb83cf21 100644 --- a/scene/3d/audio_stream_player_3d.h +++ b/scene/3d/audio_stream_player_3d.h @@ -106,6 +106,7 @@ private: float unit_db; float unit_size; float max_db; + float pitch_scale; bool autoplay; StringName bus; @@ -153,6 +154,9 @@ public: void set_max_db(float p_boost); float get_max_db() const; + void set_pitch_scale(float p_pitch_scale); + float get_pitch_scale() const; + void play(float p_from_pos = 0.0); void seek(float p_seconds); void stop(); |