summaryrefslogtreecommitdiff
path: root/scene/audio
diff options
context:
space:
mode:
authorEllen Poe <ellen@ellenhp.me>2021-02-18 20:38:47 -0800
committerEllen Poe <ellen@ellenhp.me>2021-02-18 20:38:47 -0800
commitb8a13a49686becdb4d926f730b3d7063daf81ae7 (patch)
tree842b8d9a71eb03261a4f6442667614547bf22efe /scene/audio
parenta23d7480d25c06bc8b995ab0406f7c2f1954945a (diff)
Initialize fadeout to false in AudioStreamPlayer
Diffstat (limited to 'scene/audio')
-rw-r--r--scene/audio/audio_stream_player.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/audio/audio_stream_player.h b/scene/audio/audio_stream_player.h
index d8f83ee38d..aa8d088be5 100644
--- a/scene/audio/audio_stream_player.h
+++ b/scene/audio/audio_stream_player.h
@@ -50,7 +50,7 @@ private:
Ref<AudioStream> stream;
Vector<AudioFrame> mix_buffer;
Vector<AudioFrame> fadeout_buffer;
- bool use_fadeout;
+ bool use_fadeout = false;
SafeNumeric<float> setseek{ -1.0 };
SafeFlag active;