-
Notifications
You must be signed in to change notification settings - Fork 42
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
burgerspace: sound clips are loud and have a lot of noise #228
Comments
Debian package |
Also |
This looks like it's opening an audio device with AUDIO_U8, mono, 11025Hz (through SDL_mixer), and then giving us bad data in the audio callback...maybe SDL_mixer didn't expect to actually get an AUDIO_U8 device!?! Digging in. |
Ahh, I bet it's SDL_MixAudio, which we passthrough to SDL2, but mixes in the device format...but we fake the device format at the sdl12-compat level. |
Oh yeah, that totally makes sense. We have to do the conversion in sdl12-compat. Good find! |
This game has fixed a bunch of little incompatibilities! Commits incoming! |
1.2 (on many video backends) would allow smaller surfaces that it would center in a larger mode, so emulate that here. Reference Issue #228.
Okay, this fixes the audio, and F11 not toggling the game to fullscreen mode. |
Confirmed fixed as of 67f8b3a (1.2.58 + 29 commits) |
(I'm currently assuming |
I re-tested amphetamine and etw with 1.2.64 and they seem fine. |
Prerequisites:
apt install burgerspace
(Debian package version1.9.4-1
)libsdl1.2debian
version1.2.15+dfsg2-8
(real SDL 1.2)libsdl1.2-compat
version1.2.56-2
from Debianlibsdl1.2-compat
version 1.2.58 locally-built during Steam Runtime developmentlibsdl2-2.0-0
version2.24.0+dfsg-1
libsdl-image1.2
version1.2.12-13+b1
To reproduce:
burgerspace
(using the real SDL 1.2)Space
to start, arrow keys to walk around,Esc Y
to exitLD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/sdl12-compat burgerspace
(using 1.2.56-2 from Debian)LD_LIBRARY_PATH
Expected result: in all three cases, sound effects are a bit retro but basically sound good.
Actual result: with real SDL 1.2 the sound plays cleanly. With 1.2.56 or 1.2.58, there's loud static mixed into each sound clip: it's particularly noticeable with the bell that rings when you press Space (which is
/usr/share/burgerspace/sounds/new-game-starts.wav
, 8-bit 11025 Hz mono).burgerspace implements audio itself, rather than using SDL_mixer. I haven't investigated its source code.
The text was updated successfully, but these errors were encountered: