Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioStreamInteractive transition fade_beats is an integer while being handled as float everywhere #99172

Closed
timoschwarzer opened this issue Nov 13, 2024 · 5 comments · Fixed by #99186

Comments

@timoschwarzer
Copy link
Contributor

timoschwarzer commented Nov 13, 2024

Tested versions

System information

Godot v4.4.dev (277cb68) - Arch Linux #1 ZEN SMP PREEMPT_DYNAMIC Fri, 01 Nov 2024 03:30:35 +0000 on Wayland - X11 display driver, Multi-window, 2 monitors - Vulkan (Forward+) - dedicated Intel(R) Arc(tm) A770 Graphics (DG2) - Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 threads)

Issue description

  • fade_beats is stored as int internally here
  • In add_transition and the editor plugin it's handled as float.
  • The GUI input in the editor plugin also allows entering decimal values, which get silently dropped.

Steps to reproduce

  • Create an AudioStreamInteractive and try to add a transition with e.g. 1.5 beats of transition time. The 1.5 get truncated to 1. You notice when reopening the transition dialog.

Minimal reproduction project (MRP)

N/A

@PhairZ
Copy link
Contributor

PhairZ commented Nov 13, 2024

should we assume that fade_beats can only take whole beats?

@timoschwarzer
Copy link
Contributor Author

timoschwarzer commented Nov 13, 2024

From what I can see here that is not the case. Float values should work just fine. (transition.fade_beats there is the int currently)

@PhairZ
Copy link
Contributor

PhairZ commented Nov 13, 2024

Well, I checked it and fixing it is as easy as changing the fade_beats in here to float

@timoschwarzer
Copy link
Contributor Author

@PhairZ do you want to open a PR or should I do it?

@PhairZ
Copy link
Contributor

PhairZ commented Nov 13, 2024

I'd be happy to open it. @timoschwarzer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants