Ubuntu 12.04 No Sound

Linux support forums for Eschalon: Book II

Ubuntu 12.04 No Sound

Postby tecknode » Tue Jul 31, 2012 10:32 am

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 :!:
Tecknomage
aka Master Blaster
Mage Pages
User avatar
tecknode
Initiate
 
Posts: 18
Joined: Tue Jul 31, 2012 9:44 am

Re: Ubuntu 12.04 No Sound

Postby SpottedShroom » Tue Jul 31, 2012 4:28 pm

Try invoking Book II through padsp:

Code: Select all
padsp ./eschalon_book_2
User avatar
SpottedShroom
Captain
Captain
 
Posts: 1070
Joined: Fri Jun 04, 2010 6:18 pm

Re: Ubuntu 12.04 No Sound

Postby tecknode » Tue Jul 31, 2012 7:56 pm

SpottedShroom wrote:Try invoking Book II through padsp:

Code: Select all
padsp ./eschalon_book_2


Thanks :P

Works, and using Free Audio yet.
Tecknomage
aka Master Blaster
Mage Pages
User avatar
tecknode
Initiate
 
Posts: 18
Joined: Tue Jul 31, 2012 9:44 am

Re: Ubuntu 12.04 No Sound

Postby tecknode » Sat Jun 01, 2013 11:26 am

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 :|
Tecknomage
aka Master Blaster
Mage Pages
User avatar
tecknode
Initiate
 
Posts: 18
Joined: Tue Jul 31, 2012 9:44 am

Re: Ubuntu 12.04 No Sound

Postby SpottedShroom » Sun Jun 02, 2013 4:50 pm

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.
Attachments
libopenal0a_0.0.8-7_i386.deb.gz
OpenAL version 0 compatibility package for Ubuntu 13.04
(133.92 KiB) Downloaded 140 times
User avatar
SpottedShroom
Captain
Captain
 
Posts: 1070
Joined: Fri Jun 04, 2010 6:18 pm

Re: Ubuntu 12.04 No Sound

Postby BasiliskWrangler » Tue Jun 04, 2013 8:48 am

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?
See my ramblings and keep up with the latest news on Twitter & Facebook
User avatar
BasiliskWrangler
Site Admin
 
Posts: 3535
Joined: Thu Jul 06, 2006 10:31 am
Location: The Basilisk's Lair

Re: Ubuntu 12.04 No Sound

Postby SpottedShroom » Tue Jun 04, 2013 11:22 am

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.
User avatar
SpottedShroom
Captain
Captain
 
Posts: 1070
Joined: Fri Jun 04, 2010 6:18 pm


Return to Eschalon: Book II Support [Linux]

Who is online

Users browsing this forum: No registered users and 1 guest