Version 8 (modified by nicolape, 17 years ago) (diff) |
---|
OpenAL
OpenAL (Open Audio Library) is a free software cross-platform audio API. It is designed for efficient rendering of multichannel three dimensional positional audio. Its API style and conventions deliberately resemble that of OpenGL.
Download and Install
You need the OpenAL and the FreeAlut Package. FreeAlut are utilities for OpenAL and depend on it.
Install-Script for installing the two packages to a predefined directory:
#!/bin/bash INSTALL_DIR=/insert/your/desired/directory/here cd openal-0.0.8 ./configure --prefix=${INSTALL_DIR} make clean make && make install cd .. cd freealut-1.1.0 env CFLAGS="-g -I $INSTALL_DIR/include -L$INSTALL_DIR/lib" ./configure --prefix=${INSTALL_DIR} make clean make && make install cd .. export=LD_LIBRARY_PATH=${INSTALL_DIR}/lib
This will copy the includes and create the shared and linked versions of the libs (and also pkg.copnfig)
For using OpenAL and ALUT, you need to
#include <al.h> #include <alc.h> #include <alut.h>
and link against at libopenal and libalut
Links
OpenAL Tutorial
Wikipedia about OpenAL
OpenAL official Site
Programmers Guide by Creative Labs