January 24, 2008
Retro sound effects with sfxr-sdl
About a month ago, sfxr was released.
sfxr is an easy-to-use synthesizer for retro game effects. The author originally wrote it for Microsoft Windows, but an SDL port apparently was a simple thing. With this port, we GNU/Linux users can use it, too. Unfortunately, the port didn’t work on my system; it failed to start when trying to initialize the audio subsystem:
[!] main.cpp:1167 !SDL_OpenAudio(&des, __null)
It turned out that the initialization routine was missing one parameter. I fixed it, and here’s the patch:
--- main.cpp.old 2008-01-24 13:54:01.000000000 +0100 +++ main.cpp 2008-01-24 13:52:37.000000000 +0100 @@ -1164,6 +1164,7 @@ void ddkInit() des.channels = 1; des.callback = SDLAudioCallback; des.userdata = NULL; + des.samples = 4096; VERIFY(!SDL_OpenAudio(&des, NULL)); SDL_PauseAudio(0); #endif
I’ll try to put up a static binary later.
Comments(2)
Hey =). FYI, I’ve updated the port with a similar fix for this, plus a fix for an issue when cancelling save dialogs. (Same download link as before)
Awesome, thanks! :)