PixelGuys / Cubyz

Voxel sandbox game with a large render distance, procedurally generated content and some cool graphical effects.
GNU General Public License v3.0
426 stars 52 forks source link

Music quality lowers the longer it plays #571

Open ikabod-kee opened 2 months ago

IntegratedQuantum commented 2 months ago

What kind of time-frame are we talking about?

ikabod-kee commented 2 months ago

I will make a recording.

ikabod-kee commented 2 months ago

This happens to all songs, even custom ones. It might only be on Windows?

https://github.com/user-attachments/assets/bcec28a3-35e3-41d2-baca-c208127dc0b6

I had to compress the video, so it may not be a very good example.

ikabod-kee commented 2 months ago

Hey wait, I didn't mean to close it!

IntegratedQuantum commented 2 months ago

Honestly I cannot hear any difference. I even tried comparing it side by side in audacity and switching between the version from the video and the original, but I cannot hear even the slightest difference. They do look a bit different when looking at the spectogram, especially in the high-frequency range, but that is to be expected when resampling the audio, and I cannot seem to hear the difference.

Are you sure this is a problem of the game, and not just a problem with the original files? Maybe some compression artifacts from ogg?

IntegratedQuantum commented 2 months ago

I did some research, and it seems my audio resampling could be improved. But I just have no expertise in that area, so it'll probably end up requiring using a better audio library #415 to fix. For now though, since I can't even hear the difference, I think it's good enough, and there are more important problems.