<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>sample instance</title>
		<link>http://www.allegro.cc/forums/view/612501</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 07 May 2013 17:41:54 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>it is possible to play a sample for a given time? using the sample instance for example?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matheus Santos)</author>
		<pubDate>Mon, 29 Apr 2013 17:52:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You can either loop it or set the speed so that it&#39;ll stretch to the time you want.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Mon, 29 Apr 2013 18:47:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you want it to play for a shorter amount of time than what it normally lasts for, shouldn&#39;t <span class="source-code"><a href="http://www.allegro.cc/manual/al_init_timeout"><span class="a">al_init_timeout</span></a></span> work? I have to be honest, I don&#39;t quite know what timeouts in Allegro are, and a quick read through the manual didn&#39;t help much, but I&#39;m guessing that they&#39;re a bit like Javascript&#39;s setTimeout()?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (André Silva)</author>
		<pubDate>Mon, 06 May 2013 21:09:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I think the ALLEGRO_TIMEOUT is only used for the event queue when waiting for an event.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Mon, 06 May 2013 23:35:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Are you using Allegro 5? There&#39;s a function called al_set_sample_instance_length. I haven&#39;t ever tried it but it seems to do what you want.<br /><a href="https://www.allegro.cc/manual/5/al_set_sample_instance_length">https://www.allegro.cc/manual/5/al_set_sample_instance_length</a></p><p>If that doesn&#39;t work you could easily just program an integer to iterate and stop the sound when it reaches a specified value, but this can become desynced if the program stops updating while the sound keeps playing (for example while switching to full screen)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ph03nix)</author>
		<pubDate>Tue, 07 May 2013 17:41:54 +0000</pubDate>
	</item>
</rss>
