<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>How to wait for a sample to stop playing in Allegro 5</title>
		<link>http://www.allegro.cc/forums/view/614284</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 24 May 2014 23:21:29 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>How do I tell if a sample has stopped playing yet? I don&#39;t see any <span class="source-code">al_wait_for_sample</span> function or how to get a <span class="source-code"><a href="http://www.allegro.cc/manual/ALLEGRO_SAMPLE_INSTANCE"><span class="a">ALLEGRO_SAMPLE_INSTANCE</span></a><span class="k3">*</span></span> from using <span class="source-code"><a href="http://www.allegro.cc/manual/al_play_sample"><span class="a">al_play_sample</span></a></span> to use with <span class="source-code">al_is_sample_instance_playing<span class="k2">(</span><a href="http://www.allegro.cc/manual/ALLEGRO_SAMPLE_INSTANCE"><span class="a">ALLEGRO_SAMPLE_INSTANCE</span></a><span class="k3">*</span><span class="k2">)</span></span>. What should I do?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sat, 24 May 2014 08:25:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Example in paperclip, run from console with name of audio file as parameter for command line.</p><p>[EDIT]</p><p>Forgot the percent sign in line 101
</p><div class="source-code snippet"><div class="inner"><pre>      <a href="http://www.delorie.com/djgpp/doc/libc/libc_624.html" target="_blank">printf</a><span class="k2">(</span><span class="s">"sample position %d, sample length %d, sample is %4.2f%% complete\n"</span>,sample_position,sample_length,spos<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Sat, 24 May 2014 15:11:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Okay, I needed to create a voice and I needed to use INT16. <span class="source-code"><a href="http://www.allegro.cc/manual/al_get_sample_instance_playing"><span class="a">al_get_sample_instance_playing</span></a></span> is now working for me. And so is <span class="source-code"><a href="http://www.allegro.cc/manual/al_play_sample"><span class="a">al_play_sample</span></a></span>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sat, 24 May 2014 23:21:29 +0000</pubDate>
	</item>
</rss>
