Godot Engine – Multi-platform 2D and 3D game engine
Fixed fade-in when using filler clip with AudioStreamInteractive
Applese186581055b5
diff --git a/modules/interactive_music/audio_stream_interactive.cpp b/modules/interactive_music/audio_stream_interactive.cppindex d478181fc52..46ca56a093a 100644--- a/modules/interactive_music/audio_stream_interactive.cpp+++ b/modules/interactive_music/audio_stream_interactive.cpp@@ -827,8 +827,8 @@ void AudioStreamPlaybackInteractive::_queue(int p_to_clip_index, bool p_is_auto_if (transition.fade_mode == AudioStreamInteractive::FADE_DISABLED || transition.fade_mode == AudioStreamInteractive::FADE_OUT) {// No fading, immediately start at full volume.- to_state.fade_volume = 0.0;- to_state.fade_speed = 1.0; //start at full volume, as filler is meant as a transition.+ to_state.fade_volume = 1.0; //start at full volume, as filler is meant as a transition.+ to_state.fade_speed = 0.0;} else {// Fade enable, prepare fade.to_state.fade_volume = 0.0;