-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix Overflow in Fader.cpp #3425
Conversation
:-O
I didn't get this before but |
Does this still happen on the Empty template only? or in general? |
In general. This crash was new so I haven't looked into it that much.
|
What happens if you change all the instances to SafeAmpToDBFS? do you get the crash? |
If you don't have time I can do it in the PR too |
The function hands back -inf which creates a crash in the line after.
|
👍 |
Let's see, I'll make all the values initalize at something other than 0 |
I don't think there's any real point doing this other than to show that the value can't be 0 or lower. But it wont really work as a fix since we got negative values, probably from an overflowing int., in the original thread so you'll likely end up having to use qMax anyway. |
k then, qmax it is 😄 |
@zonkmachine done. I didn't add the code to the min and max values, they're constants defined in the FXMixerView |
* Fix Overflow in Fader.cpp
Fixes #3420
I just implemented @zonkmachine's idea. I don't have the superdebug code set up so testing is appreciated.