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

Fix sounds not fading with distance by changing stereo sound files to mono #725

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

Shibva
Copy link
Contributor

@Shibva Shibva commented Aug 21, 2024

Edited certain sound files that are Stereo-channeled to be instead be mono-channeled due to Minecraft only having Volume Attenuation for .ogg's that are mono-channeled; thus causing stereo ones to play as if they were global (it is in fact how Mojang introduced those sounds too to be global)

-This effectively corrects any issues in regards to hexcasting sounds not fading in volume with distance and will stay that way as long as future/updated sounds remain MONO-CHANNELED (unless of course, you want it to be global = ) )

  • Replaced audio files have also been trimmed to reduce filesize even if slightly.

    • Effort was made to keep the sounds as original as possible, and went over it with a fine-tuned hammer even
  • Shoutout to the Figura Helper team for helping me with a personal project that leads to me discovering the root cause of this issue

    • Also to "Jess, the confused cube eater" for suggesting to check for stereo sound files in base hex as well; nice catch

[this PR merge request was made at the request of Walksanator =D]

Edited given files from stereo (2 channel) to mono (1)
- this change is made due to Minecraft being coded to not have Volume Attenuation for STEREO ogg files and only having it coded for MONO; thus causing stereo to act as if it was being played globally
- If it wasn't for the Figrua Helper team I would have never had the thought to dig into this and reveal the problem; Thank you Figura :D
@object-Object object-Object changed the title The Great-Sound Fixining; the death of Stereo [Audio Bugfix] Fix sounds not fading with distance by changing stereo sound files to mono Aug 23, 2024
@SamsTheNerd
Copy link
Member

were the other casting sounds already mono?

@Shibva
Copy link
Contributor Author

Shibva commented Aug 24, 2024

Yep, I combed thought all of them and these are the only ones that have stereo instead of mono

Also feel free to also make adjustments to the sound events now that sound fadeoff is working, might need a few tweaks.

Sadly that part is outside my capabilities

Thanks for asking

@gamma-delta
Copy link
Collaborator

LTGM

@gamma-delta gamma-delta merged commit 26c882b into FallingColors:main Sep 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants