• Advertisement
Sign in to follow this  

OpenAL and Linux

This topic is 4853 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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

Share this post


Link to post
Share on other sites
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
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
Sign in to follow this  

  • Advertisement