Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Merge pull request #119423 from neclor/fix-audio-stream-interactive-auto-advance

Thaddeus Crews0d97dc3e9f90
diff --cc modules/interactive_music/audio_stream_interactive.cpp
index 46ca56a093a,09873e1439d..f13a4e8b1fc
--- a/modules/interactive_music/audio_stream_interactive.cpp
+++ b/modules/interactive_music/audio_stream_interactive.cpp
@@@ -821,14 -819,10 +821,10 @@@ void AudioStreamPlaybackInteractive::_q
filler_end = filler_state.stream->get_length();
}
- if (!filler_state.stream->has_loop()) {
- src_no_loop = true;
- }
-
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;