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

Change sound volume scaling #2551

Merged
merged 3 commits into from Jun 10, 2021
Merged

Change sound volume scaling #2551

merged 3 commits into from Jun 10, 2021

Conversation

ghost
Copy link

@ghost ghost commented Jun 1, 2021

This PR changes the volume scaling method of the sound and music effects from linear to a logarithmic scale. This aims to fix some sound volume issues reported in #2236.

Related: #2236

@fdelapena fdelapena added the Audio label Jun 1, 2021
@fdelapena fdelapena added this to the 0.7.0 milestone Jun 1, 2021
The sound volume scaling method has been changed.
Copy link
Member

@carstene1ns carstene1ns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should make this an Utils::AdjustVolume or something (DRY).
Maybe even local to game_system.

@Ghabry
Copy link
Member

Ghabry commented Jun 7, 2021

in that case would prefer a function (in an anonymous namespace in the cpp) in Game_System. Could take the volume by reference and alter it.

The new volume scale has been moved into an own function. Calling this
function converts the volume given from linear to a logarithmic scale.
@ghost
Copy link
Author

ghost commented Jun 10, 2021

Sorry, I didn't know that I was supposed to make further changes. I hope I added the function the right way.

@Ghabry Ghabry merged commit bfe2d1c into EasyRPG:master Jun 10, 2021
@ghost ghost deleted the volume-scaling-change branch June 10, 2021 08:57
@Ghabry
Copy link
Member

Ghabry commented Jun 10, 2021

hmpf and of course this fails to compile on the 3DS because int32_t is not int there 😅

@Ghabry
Copy link
Member

Ghabry commented Jun 10, 2021

oh I see now another flaw: This adjusted volume is also written in certain chunks. This shouldn't happen. Will also fix this

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

Successfully merging this pull request may close these issues.

3 participants