diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-17 18:36:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 18:36:58 +0200 |
commit | d2be5416ef2f759df7b89c4a22b4d36a185feb25 (patch) | |
tree | 4ad660cd27e47aa5806c6183f8d2efd3092c1c66 /scene/3d/audio_stream_player_3d.h | |
parent | c8e17b5a30d63b06aec9c6226cbe1e4fbe37f1b9 (diff) | |
parent | d384d84f45dfc82fa64e082213382c78bbac3aaa (diff) |
Merge pull request #58841 from ellenhp/expose_tightness
Expose panning strength parameters
Diffstat (limited to 'scene/3d/audio_stream_player_3d.h')
-rw-r--r-- | scene/3d/audio_stream_player_3d.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/3d/audio_stream_player_3d.h b/scene/3d/audio_stream_player_3d.h index bc47a8de93..85ece6d8d5 100644 --- a/scene/3d/audio_stream_player_3d.h +++ b/scene/3d/audio_stream_player_3d.h @@ -116,6 +116,9 @@ private: float _get_attenuation_db(float p_distance) const; + float panning_strength = 1.0f; + float cached_global_panning_strength = 1.0f; + protected: void _validate_property(PropertyInfo &property) const override; void _notification(int p_what); @@ -182,6 +185,9 @@ public: void set_stream_paused(bool p_pause); bool get_stream_paused() const; + void set_panning_strength(float p_panning_strength); + float get_panning_strength() const; + Ref<AudioStreamPlayback> get_stream_playback(); AudioStreamPlayer3D(); |