Difference between revisions of "OpenAL"

From HaskellWiki
Jump to: navigation, search
(More information)
(More information: Completely revised)
Line 58: Line 58:
== More information ==
== More information ==
*[http://hackage.haskell.org/packages/archive/OpenAL/latest/doc/html/Sound-OpenAL.html The API documentation]
*[http://hackage.haskell.org/packages/archive/OpenAL/latest/doc/html/Sound-OpenAL.html The API documentation]
*[http://connect.creativelabs.com/openal/default.aspx/ The OpenAL website]
*[http://www.openal-soft.org/index.html OpenAL Soft]
*[http://connect.creativelabs.com/developer/default.aspx Creative Lab's developer site]
*[http://openal.org/ OpenAL.org]
*<s>[http://connect.creativelabs.com/openal/Documentation/OpenAL_Programmers_Guide.pdf The OpenAL programmer's guide]</s> (404)
*[http://jerli.info/docu/Master_1/Son/OpenAL_Programmers_Guide.pdf The OpenAL programmer's guide]
*[http://en.wikipedia.org/wiki/Openal Wikipedia]
*[http://en.wikipedia.org/wiki/Openal Wikipedia]
*[http://www.noeska.com/doal/tutorials.aspx Delphi OpenAL tutorial]
*[https://jogamp.org/joal-demos/www/ JOAL OpenAL Tutorials]
*Devmaster Forum: [http://forum.devmaster.net/t/openal-lesson-1-simple-static-sound/2888 OpenAL Lesson 1] [http://forum.devmaster.net/t/openal-lesson-2-looping-and-fadeaway/2889 2] [http://forum.devmaster.net/t/openal-lesson-3-multiple-sources/2890 3] [http://forum.devmaster.net/t/openal-lesson-4-the-alc/2891 4] [http://devmaster.net/p/2892/openal-lesson-5-sources-sharing-buffers 5] [http://forum.devmaster.net/t/openal-lesson-6-advanced-loading-and-error-handles/2893 6] [http://forum.devmaster.net/t/openal-lesson-7-the-doppler-effect/2894 7] [http://forum.devmaster.net/t/openal-lesson-8-oggvorbis-streaming-using-the-source-queue/2895 8]
== For questions ==
== For questions ==

Revision as of 19:05, 2 April 2015


OpenAL (short for Open Audio Library) is a library for creation of a virtual 3D world of sound. The application programmer can specify the location, the speed and the direction of the sources of sounds and of the listener. This is easily combined with a 3D world created with OpenGL and can very well be used to create games. The sounds must be provided in the form of samples; there is no support for MIDI.

An addition to this library is the OpenAL Utility Toolkit (ALUT). See also the Wikipedia article on OpenAL.


Package OpenAL
Hackage http://hackage.haskell.org/package/OpenAL
Repository darcs get http://code.haskell.org/OpenAL/OpenAL/

Windows specific actions

If you downloaded from Hackage, you might want to know, How to unpack a tar file in windows

Create a directory for include files, without spaces in the name, for example:


Define the environment variable C_INCLUDE_PATH and assign it the name of the include directory (the full path), for example, in a .bat file, before the build commands:

  Set C_INCLUDE_PATH=C:\usr\local\include

As you will need this variable more often, it is best to set it globally. Copy the directory include\AL from the package to


For all platforms

See How to install a Cabal package.


There are several OpenAL tutorials for other programming languages:


Additional software

  • StateVar: This package contains state variables, which are references in the IO monad, like IORefs or parts of the OpenGL state
  • ObjectName: Explicitly handled object names. This tiny package contains the class ObjectName, which corresponds to the general notion of explicitly handled identifiers for API objects, e.g. a texture object name in OpenGL or a buffer object name in OpenAL
  • Tensor This package contains tensor data types and their instances for some basic type classes.
  • OpenGL 3D graphics software

More information

For questions