<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Using sound() with Dev-C and Allegro</title>
		<link>http://www.allegro.cc/forums/view/588703</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 24 Nov 2006 20:25:49 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi!</p><p>  I&#39;m helping a student with a project. He downloaded a library that uses the sound() function and wishes to expand the code. One idea was to display a piano (with allegro) to play along with the tune. The problem is that Dev-C doesn&#39;t have the sound() function. Is there any way to include it?</p><p>Best regards,</p><p>  Pier
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Pier)</author>
		<pubDate>Thu, 23 Nov 2006 10:01:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The DOS sound() function?</p><p>I don&#39;t even know if that would work in Windows XP, can&#39;t he use the Allegro sound functions?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Marco Radaelli)</author>
		<pubDate>Thu, 23 Nov 2006 14:43:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>  Thanks for your answer!</p><div class="quote_container"><div class="title">Marco Radaelli said:</div><div class="quote"><p>
I don&#39;t even know if that would work in Windows XP
</p></div></div><p>
I think (but I&#39;m not sure) that the school computers have Windows XP and it worked there (using another compiler, and without Allegro).</p><div class="quote_container"><div class="title">Marco Radaelli said:</div><div class="quote"><p>

can&#39;t he use the Allegro sound functions?
</p></div></div><p>
I there an easy way on doing it? The sound() functions receives as a parameter the frequency and plays it until nosound() is called. I haven&#39;t used the native allegro sound functions but my assumption is that they play a certain file. If that&#39;s the case, I think it would be troublesome (mainly because he&#39;s starting to learn C).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Pier)</author>
		<pubDate>Fri, 24 Nov 2006 10:19:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I gave a quick look at </p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/create_sample" target="_blank"><span class="a">create_sample</span></a><span class="k2">(</span><span class="k2">)</span>
<a href="http://www.allegro.cc/manual/play_sample" target="_blank"><span class="a">play_sample</span></a><span class="k2">(</span><span class="k2">)</span>
</pre></div></div><p> Altough I never used them, from their description they look like what you need.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Marco Radaelli)</author>
		<pubDate>Fri, 24 Nov 2006 18:46:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
The problem is that Dev-C doesn&#39;t have the sound() function.
</p></div></div><p>

Of course it doesn&#39;t. Dev-C++ is just an IDE for the MinGW gcc compiler. </p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Is there any way to include it?
</p></div></div><p>

That depends on the library which contained the function. If the source code for the libray is available, it should be possible to compile it for gcc and then you could link it to the projects you create withj Dev-C++.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Fri, 24 Nov 2006 20:25:49 +0000</pubDate>
	</item>
</rss>
