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

Regression: 48000 Hz .ogg file plays back in 44100 Hz in Godot 3.3.* #49759

Closed
Chlorobyte-but-real opened this issue Jun 20, 2021 · 1 comment

Comments

@Chlorobyte-but-real
Copy link

Godot version

3.3 vs 3.2.3

System information

Arch Linux x86_64, PulseAudio, 48000 Hz speakers/headset

Issue description

48000 Hz .ogg files play back correctly on Godot version 3.2.3 and presumably previous versions.
On 3.3 and above, they are less clean, as if they were playing back at 44100 Hz.

This doesn't affect .wav files, but I'm not going to inflate the game's size just to not have worse audio on the newer version.

Interestingly, the project's Mix Rate setting doesn't affect results - a project configured at 44100 Hz plays back the file correctly on 3.2.3, and setting it to 48000 Hz doesn't fix it on 3.3+.

Steps to reproduce

  1. Open the example project in Godot 3.2.3.
  2. Play the audio files back in the editor. They should sound the same.
  3. Reopen it, this time using Godot 3.3.*.
  4. Play the audio files back again. The ogg file should sound a tad muffled, while the wav file sounds the same as before.

This affects AudioStreamPlayers too, obviously.

Minimal reproduction project

Literally just a project with the 2 audio files

@Calinou
Copy link
Member

Calinou commented Jun 20, 2021

Duplicate of #49131.

Also, note that there is no audible difference between 44100 Hz and 48000 Hz to human hearing, because both of them can reproduce frequencies above the human hearing limit. The decreased sound quality comes from a low-pass filter or insufficient resampling quality, not from a sample rate that's too low.

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

No branches or pull requests

2 participants