Skip to content

armgit / godot

Public Imported from GitHub
0

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

Fix AudioStreamInteractive auto advance

neclorb80f10c67217
diff --git a/modules/interactive_music/audio_stream_interactive.cpp b/modules/interactive_music/audio_stream_interactive.cpp
index fb6a8a1106f..09873e1439d 100644
--- a/modules/interactive_music/audio_stream_interactive.cpp
+++ b/modules/interactive_music/audio_stream_interactive.cpp
@@ -819,10 +819,6 @@ void AudioStreamPlaybackInteractive::_queue(int p_to_clip_index, bool p_is_auto_
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;
@@ -845,9 +841,9 @@ void AudioStreamPlaybackInteractive::_queue(int p_to_clip_index, bool p_is_auto_
to_state.fade_volume = 0.0;
to_state.fade_speed = fade_speed;
}
-
- to_state.auto_advance = auto_advance_to;
}
+
+ to_state.auto_advance = auto_advance_to;
}
void AudioStreamPlaybackInteractive::seek(double p_time) {