diff options
author | Ellen Poe <ellen@ellenhp.me> | 2022-03-06 08:53:56 -0800 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-06-17 13:08:48 +0200 |
commit | d384d84f45dfc82fa64e082213382c78bbac3aaa (patch) | |
tree | d4af54d083f1cb11c1fc9179a021878d11e805a8 /scene/3d/audio_stream_player_3d.h | |
parent | 78944fef820b7df87ca73d89169e68639ceef8e9 (diff) | |
download | redot-engine-d384d84f45dfc82fa64e082213382c78bbac3aaa.tar.gz |
Audio: Expose 2D/3D 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(); |