From d384d84f45dfc82fa64e082213382c78bbac3aaa Mon Sep 17 00:00:00 2001 From: Ellen Poe Date: Sun, 6 Mar 2022 08:53:56 -0800 Subject: Audio: Expose 2D/3D panning strength parameters --- scene/3d/audio_stream_player_3d.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scene/3d/audio_stream_player_3d.h') 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 get_stream_playback(); AudioStreamPlayer3D(); -- cgit v1.2.3