<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Cannot load sample.</title>
		<link>http://www.allegro.cc/forums/view/616427</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 10 Aug 2016 23:39:24 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hey, i have a problem when i try to load sample, I&#39;m doing exactly like I should, after al_load_sample function uses, my sample pointer is null...<br />Maybe someone had this issue too and know how to solve it? <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (arch674)</author>
		<pubDate>Wed, 10 Aug 2016 22:31:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>There are several possible causes for <span class="source-code"><a href="http://www.allegro.cc/manual/al_load_sample"><span class="a">al_load_sample</span></a></span> to fail.</p><p>1. You didn&#39;t initialize allegro, the audio or the acodec addons.<br />See <span class="source-code"><a href="http://www.allegro.cc/manual/al_init"><span class="a">al_init</span></a><span class="k2">(</span><span class="k2">)</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> , <a href="http://www.allegro.cc/manual/al_init_acodec_addon"><span class="a">al_init_acodec_addon</span></a><span class="k2">(</span><span class="k2">)</span></span> for details.</p><p>2. You didn&#39;t build support for your particular sound file type into allegro.<br />Where did you get allegro from? Did you build it yourself?</p><p>3. Your path or your current working directory is wrong.<br />Try testing loading the file with an absolute path. If a relative path fails, your working directory is not what you expect it to be. See <span class="source-code"><a href="http://www.allegro.cc/manual/al_change_directory"><span class="a">al_change_directory</span></a><span class="k2">(</span><span class="k2">)</span> , <a href="http://www.allegro.cc/manual/al_get_standard_path"><span class="a">al_get_standard_path</span></a><span class="k2">(</span><span class="k2">)</span> , <a href="http://www.allegro.cc/manual/al_path_cstr"><span class="a">al_path_cstr</span></a><span class="k2">(</span><span class="k2">)</span></span> for details.</p><p>4. Your sound file is a type not recognized by Allegro. Try saving it in a different format, or re-saving it with an audio editor.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 10 Aug 2016 22:39:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hey, thanks for quick response.<br />I&#39;ve done init, audio and acodec_addon.<br />There is a site u meant <a href="http://download.gna.org/allegro/allegro-unstable-bin/5.1.12/">http://download.gna.org/allegro/allegro-unstable-bin/5.1.12/</a><br />I tried to set a full path too, same issue.<br />I have &quot;.wav&quot; file.<br />Strange situation. <img src="http://www.allegro.cc/forums/smileys/rolleyes.gif" alt="::)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (arch674)</author>
		<pubDate>Wed, 10 Aug 2016 22:50:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Okay.</p><p>Your options are :</p><p>1. Update Allegro. Latest version is 5.2.1. Your problem may have been fixed. There are NUGET packages for MSVC now.</p><p>2. Try a different .wav file or an .ogg file and see if others work.</p><p>3. Try re-saving your .wav file.</p><p>Post your code, and post your .wav file as an attachment if it is not too large (&gt;10 MB).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 10 Aug 2016 22:57:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If u want to run it, i&#39;ve added my stickman too.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (arch674)</author>
		<pubDate>Wed, 10 Aug 2016 23:10:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Okay. I have binaries of 5.2.0 and ex_audio_simple won&#39;t play it. Says it failed to load.</p><p>VLC Media Player can play it though, and here&#39;s what it says about the media :<br /><span class="remote-thumbnail"><span class="json">{"name":"610508","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/1\/7150ca5c056c9c7c018c8caad995c6f2.png","w":602,"h":588,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/1\/7150ca5c056c9c7c018c8caad995c6f2"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/7/1/7150ca5c056c9c7c018c8caad995c6f2-240.jpg" alt="610508" width="240" height="234" /></span></p><p>Try re-saving it in your favorite audio editor. The codec must not be one recognized by Allegro, or maybe there is a bug. Don&#39;t know.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 10 Aug 2016 23:22:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>OK, thank you for help.<br />The problem was with sound file, I used another wav and there is how it should be.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (arch674)</author>
		<pubDate>Wed, 10 Aug 2016 23:39:24 +0000</pubDate>
	</item>
</rss>
