<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DigitalFiz &#187; How To&#8217;s</title>
	<atom:link href="http://digitalfiz.com/category/how-tos/feed/" rel="self" type="application/rss+xml" />
	<link>http://digitalfiz.com</link>
	<description>php is my kungfu...</description>
	<lastBuildDate>Mon, 30 Aug 2010 01:37:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SecondLife and 32bit/64bit Ubuntu and the easy fix for no sound</title>
		<link>http://digitalfiz.com/2009/11/secondlife-and-32bit64bit-ubuntu-and-the-easy-fix-for-no-sound/</link>
		<comments>http://digitalfiz.com/2009/11/secondlife-and-32bit64bit-ubuntu-and-the-easy-fix-for-no-sound/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 17:08:03 +0000</pubDate>
		<dc:creator>DigitalFiz</dc:creator>
				<category><![CDATA[How To's]]></category>
		<category><![CDATA[Secondlife]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[libopenal]]></category>
		<category><![CDATA[openal]]></category>
		<category><![CDATA[secondlife sound]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.digitalfiz.com/?p=31</guid>
		<description><![CDATA[This does not fix sound for streaming media. That is a separate issue with gstreamer and should only be a problem for 64bit users. Ok, well I will say that the fix was not easy to find but it is easy to do&#8230;. go figure. First off the distributions of secondlife even the newest beta versions and [...]]]></description>
			<content:encoded><![CDATA[<blockquote>
<h2 style="text-align: center;">This does not fix sound for streaming media. That is a separate issue with gstreamer and should only be a problem for 64bit users.</h2>
</blockquote>
<p>Ok, well I will say that the fix was not easy to find but it is easy to do&#8230;. go figure. First off the distributions of secondlife even the newest beta versions and all other variants like Emerald(which I use) and CoolViewer come with an older version of libopenal.1. That also goes for Ubuntu even the newest 9.10(Karmic). I didn&#8217;t really research which version they came with I just know its older then the one required for being able to use openal with pulseaudio. Direct pulseaudio support didnt come into openal until 1.10 so up until this point you could possibly get openal to use alsa which pulseaudio has a plugin for. The only problem with the alsa plugin is its unstable and for some reason openal seems to make it scream. Maybe its the load it puts on it or something I don&#8217;t know. I do know that VLC using the alsa plugin for pulseaudio studders a little bit but works ok. So the solution to no audio for secondlife in Ubuntu 64bit and really 32bit is to compile a newer version of libopenal which is simple enough. Now for the 32bit version its a little bit easier because you just compile it like normal and move the libopenal.1.11.753 to the lib folder of secondlife and continue from there. Here is the step by step instructions to do so:</p>
<ul>
<li>
<h3>Step 1 &#8211; get essentials</h3>
<p>First we need to make sure you have all the essential build material installed like gcc and cmake so liked go ahead and install that stuff:</p>
<blockquote><p><strong># sudo apt-get install build-essential cmake libpulse-dev</strong><br />
for 64bit you need to also install multilib support so that you can compile the 32bit version:<br />
<strong># sudo apt-get install gcc-4.4-multilib gcc-multilib libc6-dev-i386</strong></p></blockquote>
</li>
<li>
<h3><strong>Step 2</strong> &#8211; get openal and open it up</h3>
<p>Then we must download the latest openal which at the time of this artical is 1.10.622:</p>
<blockquote><p><strong># wget http://kcat.strangesoft.net/openal-releases/openal-soft-1.11.753.tar.bz2</strong><br />
<strong># tar -jxvf </strong><strong>openal-soft-1.10.622.tar.bz2<br />
# cd </strong><strong>openal-soft-1.10.622/build</strong></p></blockquote>
</li>
<li>
<h3><strong>Step 3</strong> &#8211; compile openal</h3>
<p>This will also be done 2 different ways depending on if your on 32bit or 64bit ubuntu first we show 32bit:</p>
<blockquote><p><strong># cmake ..</strong><br />
For 64bit version you have to do this:<strong><br />
# CFLAGS=-m32 LDFLAGS=-m32 cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=32</strong><br />
If you see something like so then it compiled in pulseaudio support:<br />
<em>&#8211; Building OpenAL with support for the following backends:<br />
&#8211;      ALSA, OSS, PulseAudio, WaveFile<br />
</em>Then we compile(both 32bit and 64bit)<strong><br />
# make</strong></p></blockquote>
</li>
<li>
<h3><strong>Step 4</strong> &#8211; back up the old libopenal and copy the new one</h3>
<p>First we need to back up the old libopenal.so.1 just encase this one is messed up. I know, I know it didnt work anyways but still always backing up is a good practice <img src='http://digitalfiz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p><strong># mv /path/to/your/secondlife/lib/libopenal.so.1 /path/to/your/secondlife/lib/libopenal.so.1.old</strong><br />
Then we copy the new one over like so:<br />
<strong># cp libopenal.so.1.10.622 /path/to/your/secondlife/lib/libopenal.so.1</strong></p></blockquote>
</li>
<li>
<h3>Step 5 &#8211; making sure openal knows to use pulse as its audio source</h3>
<p>Now because openal defaults to alsa which pulse has a buggy plugin for we must override that with the user config file. The following command assumes you have nothing in the .alsoftrc yet because you really havent messed with it. If you have a .alsoftrc and have settings in it just simply set the drivers to pulse and now anything you may already have using openal will use pulse <img src='http://digitalfiz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <span style="color: #ff0000;">The only warning I have for this is that if you have other programs that come bundled with libopenal.1 may not have the newest version that supports pulse but you should be able to do the same for that program as you did with secondlife. If it breaks anything just change it back and look for another route or ask the providers of the other software too provide an update.</span></p>
<blockquote><p><strong># echo &#8220;drivers=pulse&#8221; &gt; ~/.alsoftrc</strong></p></blockquote>
</li>
</ul>
<p>Now you should have sound for secondlife <img src='http://digitalfiz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  You might want to restart your computer to make sure no sort of caching is going on. Remember this does not fix sound for streaming media I am still working on that. I will post and link from this one to the streaming media fix if/when I get one firgured out.</p>
]]></content:encoded>
			<wfw:commentRss>http://digitalfiz.com/2009/11/secondlife-and-32bit64bit-ubuntu-and-the-easy-fix-for-no-sound/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
