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
AX: make volume field signed #12276
AX: make volume field signed #12276
Conversation
This fixes overly loud sounds in Freestyle Metal X (issue 13120).
This seems like a plausible fix; I haven't attempted to confirm it though (I don't own Freestyle Metal X and don't want to dig through AX right now). I am curious as to what value of Looking at how it's implemented: dolphin/Source/Core/Core/HW/DSPHLE/UCodes/AXVoice.h Lines 424 to 430 in ec69ed2
the maximum value of The clamping would only apply if the volume and sample were both |
The volume is 0xFF64 aka -156 (delta is 0). |
OK, so effectively |
Here is a comparison without the background music (careful, it's quite loud): broken.mp4fixed.mp4 |
That's a pretty significant difference and definitely seems better (though I can't really hear the chickens at all in the fixed version). For the chickens specifically, does the game try to change the volume based on distance, or are they at a constant volume? I'm curious if there's some kind of overflow or something there. (Though this would also depend on the chickens actually existing in the world, which I'm not 100% sure is the case.) |
They do get louder when you get closer to a barn. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems plausible enough. I haven't done any testing though.
This fixes overly loud sounds in Freestyle Metal X (issue 13120).