Cubyz icon indicating copy to clipboard operation
Cubyz copied to clipboard

Music quality lowers the longer it plays

Open ikabod-kee opened this issue 1 year ago • 6 comments

ikabod-kee avatar Jul 14 '24 17:07 ikabod-kee

What kind of time-frame are we talking about?

IntegratedQuantum avatar Jul 14 '24 17:07 IntegratedQuantum

I will make a recording.

ikabod-kee avatar Jul 14 '24 17:07 ikabod-kee

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 avatar Jul 14 '24 18:07 ikabod-kee

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

ikabod-kee avatar Jul 14 '24 18:07 ikabod-kee

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 avatar Jul 14 '24 19:07 IntegratedQuantum

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.

IntegratedQuantum avatar Jul 14 '24 19:07 IntegratedQuantum