Posts: 35
Joined: Sun Mar 13, 2016 12:21 pm

SFXR + other great tools to create little audio fragments to use in your games

Fri Feb 07, 2020 4:52 pm


It's about 10 years ago since i last created games for linuxhandheld devices at that time i was using a little tool called sfxr. I could not remember the tools name at first but i managed to find it back here . The tool can generate little noises randomly for all kinds of events in your game (1up, death, etc..). You can export each sound in 8 or 16bit / 22050 or 44100mhz as a wav file and all sound generated is free to use in any project even commercial ones.

So i just saw there is an SDL (1) port as wel and i managed to get it compiled on the pi itselve and works great on my pi4 from what i can see.

These are the basic steps i did starting from a raspbian buster image

Code: Select all

sudo apt-get install libsdl-dev
sudo apt-get install libgtk2.0-dev  (not sure if this one is needed)
sudo apt-get install gtk+-3.0
tar xvzf ./sfxr-sdl-1.2.1.tar.gz
cd sfxr-sdl-1.2.1
if all goes well you should have a binary sfxr in the directory which you can start with ./sfxr and play around with creating sound samples it's just one button presses.

i also noticed there exists a web / flash version port here but you need to enable flash each time you goto the page and i'm under the impression that it lags when using it on the RPI itself (so use a desktop pc).

There also exist another similar flash tool which has more settings called chiptone here it can also export files and generat sound effects, but again running this in chromium on the pi is too slow it seems.

All in all the locally build sfxr tool works great on the pi itselve

Here is a video explaining / showing the tool (i did not create it)

i had another easy tool to create music (not sure if it could run on linux) but i can't find it back anymore if i find i'll post a new comment

Just thought i would share in case someone works on little games and want to have audio effects for it.

Return to “General programming discussion”