You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproduced in 4.3-beta3 and latest master [293c0f7]
System information
Godot v4.3.beta3 - macOS 15.0.0 - Vulkan (Mobile) - integrated Apple M1 Max - Apple M1 Max (10 Threads)
Issue description
Using AudioStreamInteractive, a transition from Clip End to Clip Start with fade disabled between audio files that match up seamlessly creates an audible pop, as well as a time discrepancy.
Here is a timeline with Godot’s audio output (top) alongside the expected concatenation of the original files (bottom):
Note the odd waveform shape that occurs in Godot’s audio roughly between markers labeled 1 and 2, which creates a noticeable click sound.
Additionally, although the tracks are in sync prior to the transition (notice the corresponding peaks at marker 0), Godot’s audio drifts out of alignment after the transition (notice the bottom track’s peak at marker 3 corresponding to the top track’s peak at marker 4).
The timing is now basically perfectly in sync with the reference track, but the click still occurs roughly between markers 1 and 2.
Steps to reproduce
Run the MRP’s scene, which will autoplay the AudioStreamInteractive and automatically advance clips after ~20sec. Note the click that occurs during this transition.
The attached audio is a copyrighted work included for demonstration purposes only. No license is provided for its usage beyond the scope of this issue.
The text was updated successfully, but these errors were encountered:
Tested versions
Reproduced in 4.3-beta3 and latest master [293c0f7]
System information
Godot v4.3.beta3 - macOS 15.0.0 - Vulkan (Mobile) - integrated Apple M1 Max - Apple M1 Max (10 Threads)
Issue description
Using AudioStreamInteractive, a transition from Clip End to Clip Start with fade disabled between audio files that match up seamlessly creates an audible pop, as well as a time discrepancy.
Here is a timeline with Godot’s audio output (top) alongside the expected concatenation of the original files (bottom):
Note the odd waveform shape that occurs in Godot’s audio roughly between markers labeled 1 and 2, which creates a noticeable click sound.
Additionally, although the tracks are in sync prior to the transition (notice the corresponding peaks at marker 0), Godot’s audio drifts out of alignment after the transition (notice the bottom track’s peak at marker 3 corresponding to the top track’s peak at marker 4).
I was able to hack a correction for the time discrepancy by adding an (experimentally-determined) magic number to line 721 in
modules/interactive_music/audio_stream_interactive.cpp
:src_fade_wait = end - current_pos + 0.01355;
This change yields the following:
The timing is now basically perfectly in sync with the reference track, but the click still occurs roughly between markers 1 and 2.
Steps to reproduce
Run the MRP’s scene, which will autoplay the AudioStreamInteractive and automatically advance clips after ~20sec. Note the click that occurs during this transition.
Minimal reproduction project (MRP)
MRP
Audio Testing.zip
CYA
The attached audio is a copyrighted work included for demonstration purposes only. No license is provided for its usage beyond the scope of this issue.
The text was updated successfully, but these errors were encountered: