Giter Site home page Giter Site logo

sdl2-mixer's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.