2008-10-12 18:17:44 +04:00
|
|
|
{ stdenv, fetchurl, alsaLib, cmake }:
|
|
|
|
|
2015-05-21 15:08:19 +03:00
|
|
|
let version = "1.16.0"; in
|
2008-10-12 18:17:44 +04:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openal-${version}";
|
2006-01-26 17:01:08 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-05-21 15:08:19 +03:00
|
|
|
url = "http://kcat.strangesoft.net/openal-releases/openal-soft-${version}.tar.bz2";
|
|
|
|
sha256 = "0pqdykdclycfnk66v166srjrry936y39d1dz9wl92qz27wqwsg9g";
|
2008-10-12 18:17:44 +04:00
|
|
|
};
|
|
|
|
|
2013-07-04 09:04:19 +04:00
|
|
|
buildInputs = [ cmake ] ++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
|
2008-10-12 18:17:44 +04:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 18:21:08 +04:00
|
|
|
description = "Cross-platform 3D audio API";
|
2008-10-12 18:17:44 +04:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
OpenAL is a cross-platform 3D audio API appropriate for use with
|
|
|
|
gaming applications and many other types of audio applications.
|
|
|
|
|
|
|
|
The library models a collection of audio sources moving in a 3D
|
|
|
|
space that are heard by a single listener somewhere in that
|
|
|
|
space. The basic OpenAL objects are a Listener, a Source, and a
|
|
|
|
Buffer. There can be a large number of Buffers, which contain
|
|
|
|
audio data. Each buffer can be attached to one or more Sources,
|
|
|
|
which represent points in 3D space which are emitting audio.
|
|
|
|
There is always one Listener object (per audio context), which
|
|
|
|
represents the position where the sources are heard -- rendering
|
|
|
|
is done from the perspective of the Listener.
|
|
|
|
'';
|
|
|
|
|
2015-05-21 15:08:19 +03:00
|
|
|
homepage = http://kcat.strangesoft.net/openal.html;
|
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2006-01-26 17:01:08 +03:00
|
|
|
};
|
|
|
|
}
|