Skip to content
Commits on Oct 19, 2015
Commits on Oct 18, 2015
Commits on Oct 17, 2015
  1. Merge pull request #4 from danschrage/master

    Fixes #2: Properly frees the audio device and context without crashing
    committed Oct 17, 2015
  2. @danschrage
Commits on Oct 15, 2015
  1. @danschrage

    Fixes #2: Properly frees the audio device and context without crashing

    This code was previously changed to not execute to avoid the crash reported in #2. But that left a lingering problem: orphaned contexts built up and were never released until the whole program executed. After creating 32 contexts, OpenAL would crash with an out of memory error (on Ubuntu 12.04, libopenal 1.13 with default settings). So if you tried to play 33 sounds in sequence, it would crash on the last one since the contexts weren't being freed.
    This commit re-activates the code to free the device and contexts. It solves the Linux crash by moving the call to printErrors to the line before currentContext is set to Nothing. The OpenAL spec doesn't say that alErrors is tied to a particular context, but that is perhaps how it's been implemented in Linux--I'm not totally sure. But putting the printErrors call first provides the best of both worlds: it prevents the GHC crash reported in #2 and it also eliminates the orphaned devices and contexts that build up with each call to withSpeakers.
    danschrage committed Oct 15, 2015
Commits on Jan 4, 2015
  1. Library version is now

    README no longer features link to Flattr.
    committed Jan 4, 2015
Commits on Jan 2, 2015
  1. @biinui
Commits on Jan 12, 2013
  1. Bump dependencies.

    committed Jan 12, 2013
Commits on Apr 8, 2012
  1. Small changes.

    committed Apr 8, 2012
Commits on Apr 7, 2012
  1. Reorganize module names. Add 'Reactive' module for stuff related to f…

    …unctional reactive programming. Add 'Timer' data type and test it with a small kickDrum beat.
    committed Apr 7, 2012
Commits on Apr 6, 2012
  1. Fix crash on Linux.

    committed Apr 6, 2012
Commits on Mar 22, 2012
  1. Add small example

    committed Mar 22, 2012
Commits on Feb 16, 2012
Commits on Feb 15, 2012
Commits on Feb 14, 2012
  1. Fix cabal file.

    committed Feb 14, 2012
Commits on Feb 13, 2012
Something went wrong with that request. Please try again.