<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>alflac - FLAC support for allegro</title>
		<link>http://www.allegro.cc/forums/view/587922</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 08 Oct 2006 02:06:35 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello,</p><p>I&#39;ve released alflac, a library for adding support for FLAC (Free Lossless Audio Codec) files in Allegro. It&#39;s really a wrapper for the stream_decoder module in libFLAC (that code is included). I&#39;d realy like it if it can be added to the list of libraries on the site.</p><p>FLAC files are a way to compress .wav files really well (generally goes to about half the original size). If you have over 100 KB of audio files, you&#39;ll probably save space by using alflac.dll.</p><p>To use it, add alflac_for_allegro() somewhere after allegro_init(), and then you can use load_sample(&quot;whatever.flac&quot;). When you compile, you&#39;ll need to link to alflac (-lalflac) and #include &lt;alflac.h&gt;. Note, it&#39;ll take a moment longer to load (but not much longer).<br /> <br />You can also add .flac files as data in a datafile: if you give it the ID &quot;FLAW&quot;, alflac will convert it to a SAMPLE when you call load_datafile. Again, you need alflac_for_allegro() after allegro_init().</p><p>There&#39;s also some streaming stuff for more advanced use.</p><p>Download alflac here (BSD license):<br /><a href="http://sourceforge.net/projects/alflac">http://sourceforge.net/projects/alflac</a><br />(or <a href="http://compunach.co.nr/alflac">http://compunach.co.nr/alflac</a> )</p><p>Alflac only decodes the files (to keep the .dll small), so to make FLAC files from .wav files you&#39;ll need to download flac:<br /><a href="http://flac.sf.net">http://flac.sf.net</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Physics Dave)</author>
		<pubDate>Sun, 08 Oct 2006 02:06:35 +0000</pubDate>
	</item>
</rss>
