summaryrefslogtreecommitdiffstats
path: root/scene/2d/audio_stream_player_2d.h
diff options
context:
space:
mode:
authorEllen Poe <ellen@ellenhp.me>2022-03-06 08:53:56 -0800
committerRémi Verschelde <rverschelde@gmail.com>2022-06-17 13:08:48 +0200
commitd384d84f45dfc82fa64e082213382c78bbac3aaa (patch)
treed4af54d083f1cb11c1fc9179a021878d11e805a8 /scene/2d/audio_stream_player_2d.h
parent78944fef820b7df87ca73d89169e68639ceef8e9 (diff)
downloadredot-engine-d384d84f45dfc82fa64e082213382c78bbac3aaa.tar.gz
Audio: Expose 2D/3D panning strength parameters
Diffstat (limited to 'scene/2d/audio_stream_player_2d.h')
-rw-r--r--scene/2d/audio_stream_player_2d.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/2d/audio_stream_player_2d.h b/scene/2d/audio_stream_player_2d.h
index 73b09e432f..a22782fe44 100644
--- a/scene/2d/audio_stream_player_2d.h
+++ b/scene/2d/audio_stream_player_2d.h
@@ -81,6 +81,9 @@ private:
float max_distance = 2000.0;
float attenuation = 1.0;
+ 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);
@@ -123,6 +126,9 @@ public:
void set_max_polyphony(int p_max_polyphony);
int get_max_polyphony() const;
+ void set_panning_strength(float p_panning_strength);
+ float get_panning_strength() const;
+
Ref<AudioStreamPlayback> get_stream_playback();
AudioStreamPlayer2D();