Skip to content

tempname11/sdl2-mixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdl2-mixer

This is a very early, incomplete version of Haskell bindings to SDL_mixer, version 2.0, intended for use with the sdl2 package, specifically the new-api branch. The goal for this library is for it to look like (and work seamlessly with) sdl2.

More or less all of the C API is exposed in the low-level bindings, SDL.Raw.Mixer module.

Only a small fraction of the API is exposed in the high-level bindings, SDL.Mixer module at the moment, but it's enough to read sound files from disk and play them at will, which is the most important thing, really.

I will be updating this library as I go along in making my own (undisclosed yet) game. If (or rather, when) something you need is missing, feel free to add the functionality and make a pull request. It'd be greatly appreciated.

As the library matures a bit and the API becomes more or less fixed, I intend to upload this package to Hackage.

Some misc. tips:

  1. Take a look at a basic usage example (also the raw API version). I think it looks pretty clean.
  2. In order for SDL_mixer to play MP3 files, you need the SMPEG library installed, and SDL_mixer to be configured with the support for it. On Mac OS X, this meant I couldn't use the sdl2_mixer package from homebrew, and had to install both libraries manually.

About

Haskell bindings to the SDL_mixer 2.0 library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published