Page 1 of 1

Ubuntu 12.04 No Sound

Posted: July 31st, 2012, 10:32 am
by tecknode
First, way back when I was using Ubuntu 9 on my laptop I had the same problem. Someone provided me a fix.

Since then I've tried two other distributions of Linux, Linux Mint 10 and openSUSE. Both of these had no problem with Eschalon-2 because it came up with OpenAL audio.

Well I'm back to Ubuntu 12.04 and Eschalon-2 has no sound :( no OpenAL listed.

I need the fix again, please :!:

Re: Ubuntu 12.04 No Sound

Posted: July 31st, 2012, 4:28 pm
by SpottedShroom
Try invoking Book II through padsp:

Code: Select all

padsp ./eschalon_book_2

Re: Ubuntu 12.04 No Sound

Posted: July 31st, 2012, 7:56 pm
by tecknode
SpottedShroom wrote:Try invoking Book II through padsp:

Code: Select all

padsp ./eschalon_book_2
Thanks :P

Works, and using Free Audio yet.

Re: Ubuntu 12.04 No Sound

Posted: June 1st, 2013, 11:26 am
by tecknode
UPDATE: I am now running Ubuntu 13.04

I am still using the "padsp" to launch Eschalon 1 & 2, BUT now the sound is choppy :cry:

Also, why can I NOT get the audio to show [OpenAl] as I did in Ubuntu 9 :?:

Is there a launch prefix I can use to get Eschalon to run OpenAl :|

Re: Ubuntu 12.04 No Sound

Posted: June 2nd, 2013, 4:50 pm
by SpottedShroom
After a bit of research, I think I know what the issue is with OpenAL. Book II was built on a system with the older version 0 of OpenAL - the library file is called libopenal.so.0. At some point - Ubuntu 8.10, I believe - newer Ubuntu releases switched to version 1 of OpenAL, which has a different API. The new library file is called libopenal.so.1 to signal its incompatibility with the old one. The "right" answer according to the Ubuntu people would be to recompile Book II against OpenAL 1, although that would break compatibility for people who are still using the old version.

An easier fix is to install an old version of OpenAL on your new system - the different file name means it can co-exist with the new one. Unfortunately, there's no compatibility package included in Ubuntu, so we have to build our own. I've attached a package file - phpBB won't let me upload .deb files, so it needs to be ungzipped before you can install it.

Or to build from scratch, open a terminal and run:

Code: Select all

mkdir openal-build
cd build
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openal/openal_0.0.8.orig.tar.gz
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openal/openal_0.0.8-7.diff.gz
tar -xvzf openal_0.0.8.orig.tar.gz
mkdir openal-0.0.8/debian
cd openal-0.0.8/debian
zcat ../../openal_0.0.8-7.diff.gz|patch
perl -i -pe 's/libarts1-dev.*?,//' control 
cd ..
sudo apt-get install libvorbis-dev libsmpeg-dev libesd0-dev texinfo libsdl1.2-dev
dpkg-buildpackage
Once you've installed the libopenal0a deb file, you should be able to pick OpenAL Default for your audio driver when you start Book II.

Re: Ubuntu 12.04 No Sound

Posted: June 4th, 2013, 8:48 am
by BasiliskWrangler
Slightly off-topic, but on the subject of Linux & sound:

We are compiling Book III on the most up-to-date version of Ubuntu 12.04LTS. I truly know *nothing* of Linux sound architecture, but it looks like we can compile with support for:

ALSA
Pulse Audio
OpenAL

Which is the most preferred default sound support for Linux?

Re: Ubuntu 12.04 No Sound

Posted: June 4th, 2013, 11:22 am
by SpottedShroom
OpenAL will give you the best compatibility - every distribution should support it. There is the version issue discussed above, but probably just building against the newer version is the way to go. If possible, you might consider including a copy of the OpenAL library with the game download. That's what the Linux version of Avadon does, for example.