AudioStreamPolyphonic
with AudioStreamPlayer.pitch_scale
#89210
Labels
AudioStreamPolyphonic
with AudioStreamPlayer.pitch_scale
#89210
Tested versions
v4.2.2.rc1.official [c7fb064]
System information
Ubuntu 23.10, Vulkan, NVIDIA GeForce RTX™ 2060 / NVIDIA GeForce RTX™ 2060
Issue description
Previously, in Godot 3 we could have the following setup with an
AudioStreamPlayer
where we could usepitch_scale
with anAudio Clip
track in theAnimationPlayer
.With Godot 4 this setup doesn't work any more because
AudioStreamPolyphonic
's pitch needs to be updated withAudioStreamPlaybackPolyphonic
instance instead.To make things worse,
AudioStreamPlaybackPolyphonic
is valid only after theAudioStreamPlayer.stream
gets assigned so in the case above it's at the1sec
mark in theAnimationPlayer
.What should happen in my opinion is that
AudioStreamPlayer.pitch_scale
should auto-update theAudioStreamPlaybackPolyphonic
pitch as well, otherwise it gets confusing becauseAudioStreamPolyphonic
is the only one that behaves differntly, not being affected by theAudioStreamPlayer.pitch_scale
value.Steps to reproduce
AnimationPlayer
node.dbg-audio-clips
animation is selected from the dropdown list.Animation Clips:
track pitch doesn't change.dbg-expected
animation.Minimal reproduction project (MRP)
godot-dbg.zip
The text was updated successfully, but these errors were encountered: