OpenAL and Linux

Started by
2 comments, last by subflood 19 years, 5 months ago
I want to use music in my game that I made in Linux but I'm not sure how to do it. I know there are tutorials out there for OpenAL but I still need some help. 1. What header files do I need to include? So far I have included al.h but do I need anything else? 2. Since I'm working in Linux can I instead play ogg files rather than wav? If yes is it any different than playing wav? 3. I know there is a tutorial written here on gamedev on OpenAL but I was wondering if I could play ogg files will it make a difference?
Advertisement
cvs -d:pserver:guest@opensource.creative.com:/usr/local/cvs-repository login
(password: guest)
cvs -d:pserver:guest@opensource.creative.com:/usr/local/cvs-repository co

after download the file, do something like this:
su
cd openal/linux

sh ./autogen.sh
./configure --enable-prefix=/usr/local
make
make install

to make the library

for more information, go to
www.openal.org
http://www.edenwaith.com/products/pige/tutorials/openal.php#download
Hey, are you using SDL? If so, then SDL_mixer might have what you need. It doesn't do 3d sound but it's a lot simpler and plays ogg and wav out of the box. What linux flavor do you have?
I know how to install OpenAL...

Can I use SDL just for my sound? Say if I was making just a console apllication and I need sound can I use SDL?

This topic is closed to new replies.

Advertisement