<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>sound initialisation</title>
		<link>http://www.allegro.cc/forums/view/554047</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 20 Dec 2005 05:10:29 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello,<br />A simple question, if either detect_digi_driver() or detect_midi_driver() fails, will calling install_sound(DIGI_AUTODETECT, MIDI_AUTODETECT) pass or fail? </p><p>There seems to be two different detection routines but only one install, so how do you know if either actually fails at the install_sound call?</p><p>Thanks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Walker)</author>
		<pubDate>Tue, 20 Dec 2005 00:13:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>From the manual:</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Returns zero if the sound is successfully installed, and -1 on failure. If it fails it will store a description of the problem in allegro_error.
</p></div></div><p>

Hopefully that will be enough to work with, but I understand where you&#39;re coming from. Seems like if either one fails, install_sound fails.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Sirocco)</author>
		<pubDate>Tue, 20 Dec 2005 00:41:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Is this what you&#39;re asking?</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">if</span> <span class="k2">(</span><a href="http://www.allegro.cc/manual/detect_digi_driver" target="_blank"><span class="a">detect_digi_driver</span></a><span class="k2">(</span>ABC<span class="k2">)</span> <span class="k3">&amp;</span><span class="k3">&amp;</span> <a href="http://www.allegro.cc/manual/detect_digi_driver" target="_blank"><span class="a">detect_digi_driver</span></a><span class="k2">(</span>ABCD<span class="k2">)</span><span class="k2">)</span> <span class="k2">{</span>
  <a href="http://www.allegro.cc/manual/install_sound" target="_blank"><span class="a">install_sound</span></a><span class="k2">(</span>ABC, ABCD<span class="k2">)</span><span class="k2">;</span>
<span class="k2">}</span> <span class="k1">else</span> <span class="k1">if</span> <span class="k2">(</span><a href="http://www.allegro.cc/manual/detect_digi_driver" target="_blank"><span class="a">detect_digi_driver</span></a><span class="k2">(</span>ABC<span class="k2">)</span><span class="k2">)</span> <span class="k2">{</span>
  <a href="http://www.allegro.cc/manual/install_sound" target="_blank"><span class="a">install_sound</span></a><span class="k2">(</span>ABC, MIDI_NONE<span class="k2">)</span><span class="k2">;</span>
<span class="k2">}</span> <span class="k1">else</span> <span class="k1">if</span> <span class="k2">(</span><a href="http://www.allegro.cc/manual/detect_digi_driver" target="_blank"><span class="a">detect_digi_driver</span></a><span class="k2">(</span>ABCD<span class="k2">)</span><span class="k2">)</span> <span class="k2">{</span>
  <a href="http://www.allegro.cc/manual/install_sound" target="_blank"><span class="a">install_sound</span></a><span class="k2">(</span>DIGI_NONE, ABCD<span class="k2">)</span><span class="k2">;</span>
<span class="k2">}</span>
</pre></div></div><p>

Might be wrong, I&#39;ve never done that before.. just thought of it on the spot.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (scriptX)</author>
		<pubDate>Tue, 20 Dec 2005 01:11:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>can you pass DIGITAL_AUTODETECT to detect_digi_driver?</p><p>If you can, I&#39;d say that a call to install_sound with any paramter as the digital (save DIGI_NONE) paramter would fail. </p><p>Same goes for MIDI.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Synapse Jumps)</author>
		<pubDate>Tue, 20 Dec 2005 02:01:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Cheers, never thought of reading the manual to see if there was a MIDI_NONE <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Walker)</author>
		<pubDate>Tue, 20 Dec 2005 05:10:29 +0000</pubDate>
	</item>
</rss>
