<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>crash when calling &quot;al_reserve_samples&quot;</title>
		<link>http://www.allegro.cc/forums/view/615393</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 22 May 2015 13:13:10 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi, in my pc when i start my allegro program it crash with segmentation fault when i call the allegro function &quot;al_reserve_function(1);&quot;. In other pc it doesn&#39;t happen then i have read the code of this function and it crash when try it &quot;if(_al_kcm_driver-&gt;allocate_voice(voice) != 0)&quot; then the problem can be caused by the audio driver. How i can check this?</p><p>I have Ubuntu 14.04 and i use codeblocks.</p><p>Thanks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (frafra800)</author>
		<pubDate>Tue, 19 May 2015 22:32:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Do you call <span class="source-code"><a href="http://www.allegro.cc/manual/al_install_audio"><span class="a">al_install_audio</span></a></span> properly and check it&#39;s return value before calling <span class="source-code"><a href="http://www.allegro.cc/manual/al_reserve_samples"><span class="a">al_reserve_samples</span></a></span>? If <span class="source-code"><a href="http://www.allegro.cc/manual/al_install_audio"><span class="a">al_install_audio</span></a></span> returns false for some reason, you can&#39;t use any audio functions.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (beoran)</author>
		<pubDate>Tue, 19 May 2015 23:44:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>yes, the problem is in al_install_audio, i tryed to install libpulse-dev but don&#39;t work... and thanks for the answer <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (frafra800)</author>
		<pubDate>Tue, 19 May 2015 23:49:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Do you compile Allegro yourself? You could paste a copy of the make output here, perhaps that will bring more clarity...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (beoran)</author>
		<pubDate>Wed, 20 May 2015 00:23:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I use codeblocks, in the build log there aren&#39;t problems, what i can do to post more informations?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (frafra800)</author>
		<pubDate>Wed, 20 May 2015 14:35:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I assume audio otherwise works correctly on that computer? Could you try the audio-related Allegro examples and see if they work or not? If not, it may be an Allegro bug.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (beoran)</author>
		<pubDate>Wed, 20 May 2015 15:37:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Try setting the default mixer <b>BEFORE</b> reserving samples, something like:
</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/al_set_default_mixer"><span class="a">al_set_default_mixer</span></a><span class="k2">(</span>mixer<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Dizzy Egg)</author>
		<pubDate>Wed, 20 May 2015 18:07:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The problem is the al_install_audio(), it return always false also in a simple project.<br />Declaring first the mixer the problem persist.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (frafra800)</author>
		<pubDate>Wed, 20 May 2015 19:12:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ahh ok sorry - have you installed these?</p><p>libogg-dev<br />libvorbis-dev<br />DUMB
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Dizzy Egg)</author>
		<pubDate>Wed, 20 May 2015 19:29:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/615393/1013403#target">beoran</a> said:</div><div class="quote"><p> Do you compile Allegro yourself?
</p></div></div><p>This is the important question to be answered. Ubuntu is basically the best supported platform for Allegro, so it all should just work assuming Allegro was built/installed properly.</p><p>EDIT: I should also say, that for starting, I&#39;d recommend using our PPA: <a href="https://wiki.allegro.cc/index.php?title=Install_Allegro_from_Ubuntu_PPAs">https://wiki.allegro.cc/index.php?title=Install_Allegro_from_Ubuntu_PPAs</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Wed, 20 May 2015 20:25:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>nothing, the problem persist... <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><br />I try to format and install ubuntu 15.04.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (frafra800)</author>
		<pubDate>Thu, 21 May 2015 13:07:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well, fwiw I use Ubuntu 14.04 and I have no problems <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Thu, 21 May 2015 20:36:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Problem solved! I have installed the 15.04 version.;D
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (frafra800)</author>
		<pubDate>Fri, 22 May 2015 12:55:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Most likely is was a driver problem then? Too bad we couldn&#39;t figure it out. But anyway, good to hear it works for you now.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (beoran)</author>
		<pubDate>Fri, 22 May 2015 13:13:10 +0000</pubDate>
	</item>
</rss>
