Skip to content

DrPetter's sound effect generator ported to SDL2.

Notifications You must be signed in to change notification settings

tjohnman/sfxr-sdl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sfxr-sdl2

DrPetter's sound effect generator ported to SDL2.

sfxr is a generator for simple sound effects, created by DrPetter (http://www.drpetter.se). You can use it to create easy retro sounds for remixing or video games.

Ported to SDL2 from: grimfang4/sfxr.

Download

  • You can find pre-packaged releases for macOS and Windows.

Dependencies

Building

macOS

  • Make sure you have Xcode command line tools installed.
  • Install SDL2 via brew install sdl2 (get Homebrew first), or your method of choice.
  • Run make in the same directory as the Makefile.

Linux

  • Install SDL2 using your package manager of choice.
  • Run make in the same directory as the Makefile.

Windows

  • Install MinGW and SDL2.
  • Extract SDL2 to the sfxr-sdl2-master directory or wherever you wish.
  • Using MinGW's command line, cd into the sfxr-sdl2-master and run g++ src/*.cpp -ISDL2-2.0.14/x86_64-w64-mingw32/include -LSDL2-2.0.14/x86_64-w64-mingw32/lib -lmingw32 -lSDL2main -lSDL2 -mwindows -o sfxr-sdl2.exe. Make sure to adjust your "include" and "lib" directories to your actual SDL2 location if needed.

Installing

Build files will be in the build subdirectory. You can use sudo make install on Linux and macOS to install the program as sfxr-sdl2. The uninstall target is also available.

On Windows, you can copy the files in the build subdirectory to wherever you want.