<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>al_install_audio fails when started from quick launch bar</title>
		<link>http://www.allegro.cc/forums/view/616302</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 28 May 2016 01:57:13 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve put off asking about this for a long time because it&#39;s not too major an issue for me, but I don&#39;t want it to be a problem for others when I distribute my game.</p><p>My game runs fine.<br />However...<br />When you start it from the quick-launch bar in Windows, most of the time al_install_audio will return false.<br />What is odd is you can right-click on the same icon and click the application icon in the context window and it succeeds 100% of the time.</p><p>Any advice on what I can do to make it work all the time? <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /></p><div class="source-code snippet"><div class="inner"><pre>    <span class="k1">if</span><span class="k2">(</span><span class="k3">!</span><a href="http://www.allegro.cc/manual/al_install_audio"><span class="a">al_install_audio</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">)</span>
    <span class="k2">{</span>
        <a href="http://www.allegro.cc/manual/al_show_native_message_box"><span class="a">al_show_native_message_box</span></a><span class="k2">(</span>nullptr, <span class="s">"Error!"</span>, <span class="s">""</span>, <span class="s">"Failed to initialize audio."</span>, nullptr, ALLEGRO_MESSAGEBOX_ERROR<span class="k2">)</span><span class="k2">;</span>
        <span class="k1">return</span> <span class="k1">false</span><span class="k2">;</span>
    <span class="k2">}</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Felix-The-Ghost)</author>
		<pubDate>Fri, 27 May 2016 08:09:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Which Windows, and which quick launch? Pinned to the start menu? Pinned to the task bar? Have you tried running the debug version Allegro in a debugger and seeing what part crashes?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Chris Katko)</author>
		<pubDate>Fri, 27 May 2016 08:27:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Windows 7 64bit, pinned to taskbar.<br />I don&#39;t know how to debug Allegro, but I avoid a program crash by closing when the init fails (only from the taskbar with a left click)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Felix-The-Ghost)</author>
		<pubDate>Fri, 27 May 2016 09:22:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;s interesting.  My first thought was that the exe path might be different and some resource files are not loaded correctly.</p><p>However, you&#39;re saying the actual init fails.  Have you tried a bare-bones program with only al_init and al_install_audio?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Fri, 27 May 2016 17:21:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I can confirm experiencing the same problem on multiple machines with my games. I follow the same basic initialization pattern.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Sat, 28 May 2016 01:57:13 +0000</pubDate>
	</item>
</rss>
