summaryrefslogtreecommitdiffstats
path: root/scene/2d/audio_stream_player_2d.h
diff options
context:
space:
mode:
authorMarcelo Fernandez <marcelofg55@gmail.com>2018-05-27 15:29:10 -0300
committerMarcelo Fernandez <marcelofg55@gmail.com>2018-06-03 14:01:47 -0300
commitc409fe05972b39fb1509e0b5c106378a0c30450c (patch)
tree9132e9250a24d86b65295abe039ccfd0f1c5cd43 /scene/2d/audio_stream_player_2d.h
parentc80ac06253e832284be7ae37515b0ca1ecf11a52 (diff)
downloadredot-engine-c409fe05972b39fb1509e0b5c106378a0c30450c.tar.gz
Pause AudioStreamPlayers when SceneTree pauses
Diffstat (limited to 'scene/2d/audio_stream_player_2d.h')
-rw-r--r--scene/2d/audio_stream_player_2d.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/2d/audio_stream_player_2d.h b/scene/2d/audio_stream_player_2d.h
index 9ae8e3a518..b508de3171 100644
--- a/scene/2d/audio_stream_player_2d.h
+++ b/scene/2d/audio_stream_player_2d.h
@@ -71,7 +71,9 @@ private:
float volume_db;
float pitch_scale;
+ float stream_paused_fade;
bool autoplay;
+ bool stream_paused;
StringName bus;
void _mix_audio();
@@ -123,6 +125,9 @@ public:
void set_area_mask(uint32_t p_mask);
uint32_t get_area_mask() const;
+ void set_stream_paused(bool p_pause);
+ bool get_stream_paused() const;
+
AudioStreamPlayer2D();
~AudioStreamPlayer2D();
};