-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Audio sounds muffled when using LWJGL3 backend #6784
Comments
Hi there, i see there is a "need more info" label, can you elaborate? If it helps, I am on windows 11, though I don't see why this issue wouldnt also occur on windows 10. |
Hm, it's quite strange that the issue only happens with LWJGL 3 and not 2. The respective files are basically the same: com/badlogic/gdx/backends/lwjgl/audio/Wav.java, com/badlogic/gdx/backends/lwjgl3/audio/Wav.java |
I don't believe it has anything to do with the audio decoding part, rather the actual playback part, but in that case I don't know why it would affect OP, as LWJGL3's audio issue has been fixed for me presumably in the linked issue. I've now tested SNAPSHOT on Windows 10 and got the same results as on Linux (no problems - audio perfection). Possibly hardware-dependent? |
Okay, this is still a problem across both Windows and Linux (on different hardware), I've narrowed it down to only monaural sounds being affected, so an easy workaround if you don't need panning is to encode all sounds in stereo. |
Please ensure you have given all the following requested information in your report.
Issue details
Played sound effects sound very strange / muffled when using LWJGL3 backend.
Reproduction steps/code
The bug can be reproduced on a nearly empty project:
In the above test, pistol2.wav is downloaded from https://freesound.org/people/michorvath/sounds/427592/ but I'm pretty sure it doesn't matter what file you use to repro.
Version of libGDX and/or relevant dependencies
1.10.1-SNAPSHOT
Please select the affected platforms
Other
The sound file I am playing is mono 16bit pcm Wav data at 44100hz. It also works fine on the lwjgl2 backend. I'd describe the audio distortion as as if it's being passed through a telephone or some sort of band pass filter.
To folks debugging: I wonder if this bug may have context / be related: #6526 - (also by chance the only other bug I have filed to this project - I tend to do a lot of audio stuff I guess)
The text was updated successfully, but these errors were encountered: