diff --git a/modules/interactive_music/audio_stream_interactive.cpp b/modules/interactive_music/audio_stream_interactive.cpp index 8656be988d9..43baf11f2ab 100644 --- a/modules/interactive_music/audio_stream_interactive.cpp +++ b/modules/interactive_music/audio_stream_interactive.cpp @@ -1018,6 +1018,10 @@ int AudioStreamPlaybackInteractive::get_loop_count() const { } double AudioStreamPlaybackInteractive::get_playback_position() const { + if (playback_current != -1) { + const State ¤t_state = states[playback_current]; + return current_state.playback->get_playback_position(); + } return 0.0; }