Sign in to follow this  
subflood

OpenAL and Linux

Recommended Posts

subflood    170
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?

Share this post


Link to post
Share on other sites
hereisvincent    122
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

Share this post


Link to post
Share on other sites
clayasaurus    139
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?

Share this post


Link to post
Share on other sites
subflood    170
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this