<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>SB16, Win98, Alleg42</title>
		<link>http://www.allegro.cc/forums/view/587633</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 21 Sep 2006 11:20:13 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,</p><p>Trying to use Allegro on a Win98 machine with a Soundblaster 16 card. The proper drivers are installed, and the card works fine with everything else.</p><p>I downloaded the allegro demo. (in the misc. package), along with the Binary dll on the allegro.cc website. Upon launching demo.exe, I receive a message box - &quot;demo: Error initialising sound Failed to init digital sound driver OK&quot; Click OK, and the demo continues to run, but with no sound.</p><p>I have tried to change the sound driver by using the allegro.cfg [sound] digicard = x option, but it has not helped. </p><p>Any ideas?</p><p>Thanks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Austin)</author>
		<pubDate>Tue, 19 Sep 2006 22:51:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi Mike,</p><p>The strange thing is the DOS version seems to support SB16:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
DIGI_AUTODETECT      - let Allegro pick a digital sound driver<br />      DIGI_NONE            - no digital sound<br />      DIGI_SB              - Sound Blaster (autodetect type)<br />      DIGI_SB10            - SB 1.0 (8-bit mono single shot dma)<br />      DIGI_SB15            - SB 1.5 (8-bit mono single shot dma)<br />      DIGI_SB20            - SB 2.0 (8-bit mono auto-initialised<br />                             dma)<br />      DIGI_SBPRO           - SB Pro (8-bit stereo)<br />      DIGI_SB16            - SB16 (16-bit stereo)<br />      DIGI_AUDIODRIVE      - ESS AudioDrive<br />      DIGI_SOUNDSCAPE      - Ensoniq Soundscape<br />      DIGI_WINSOUNDSYS     - Windows Sound System
</p></div></div><p>

From:<br /><a href="http://alleg.sourceforge.net/onlinedocs/en/alleg036.html#DIGI_*/DOS">http://alleg.sourceforge.net/onlinedocs/en/alleg036.html#DIGI_*/DOS</a></p><p>I wonder if this is a problem with the windows directX driver.. <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" /></p><p>Looking at wdsound.c in the allegro source it seems that quite a few logging texts are made in debug mode. Would it be possible to compile allegro 4.2.0 in debug mode and see what is outputted to the console window? (I presume debugging mode outputs to that window..)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Tue, 19 Sep 2006 23:03:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
The strange thing is the DOS version seems to support SB16:
</p></div></div><p>
Of course it does! <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /><br />Sounds like he&#39;s using the Windows version of Allegro though (or Windows)...</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
(I presume debugging mode outputs to that window..)
</p></div></div><p>
Windows doesn&#39;t have a proper stderr, so no. It goes to allegro.log.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Wed, 20 Sep 2006 00:05:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Of course it does! <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div></div><p>
What I meant was that if Allegro DOS had specific support for this then I would have expected the windows versions to be tested with that board too. That is, when the first windows version was made and that SB16 board was still used...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 20 Sep 2006 00:10:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
had
</p></div></div><p>
has. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
What I meant was that if Allegro DOS had specific support for this then I would have expected the windows versions to be tested with that board too..
</p></div></div><p>
The Windows version uses the Windows API; it doesn&#39;t use the soundcard directly. In other words, it shouldn&#39;t matter what soundcard it is used with, as long as Windows can use it.<br />As for testing, I wouldn&#39;t be surprised if no one has tried that combination before. When I had a SB16, Windows&#39;98 didn&#39;t exist yet (wouldn&#39;t for several years, in fact) and by the time I had Windows&#39;98, I had a different computer with a different sound card.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Wed, 20 Sep 2006 00:14:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
So.. are you saying this is a DirectX problem, or a bug in the Allegro sound DirectX code? <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 20 Sep 2006 00:29:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
are you saying this is a DirectX problem, or a bug in the Allegro sound DirectX code?
</p></div></div><p>
Yes.<br />The Windows port (or UNIX port for that matter) shouldn&#39;t care what type of soundcard is installed on the machine, since it uses a hardware-independent API to acces it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Wed, 20 Sep 2006 00:44:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Yet Mike A said the card worked fine with everything else?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 20 Sep 2006 00:47:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Your point being...?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Wed, 20 Sep 2006 01:01:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
The Windows port (or UNIX port for that matter) shouldn&#39;t care what type of soundcard is installed on the machine, since it uses a hardware-independent API to acces it.
</p></div></div><p>
So, it should work on a SB16 if other DirectX programs have no problems using it..
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 20 Sep 2006 01:16:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
So, it should work on a SB16 if other DirectX programs have no problems using it..
</p></div></div><p>
Yes, it should. I still don&#39;t see your point. Did you miss my &#39;yes&#39; to your question &#39;are you saying this is a DirectX problem, or a bug in the Allegro sound DirectX code?&#39; above? If so, then yes, it looks like a bug somewhere somehow.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Wed, 20 Sep 2006 01:27:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Well, they were two questions which you gave one answer. Guess it was a little confusing. Anyway! Let&#39;s see if Mike Austin can use the debug version and see what part it&#39;s failing on.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 20 Sep 2006 01:32:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ah! The comma was relevant. I thought you meant &#39;is it a problem with one of these two things?&#39;, but you meant &#39;do you think it is a problem with this, or a problem with that?&#39;?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Wed, 20 Sep 2006 02:00:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The log file does not give any relevant info.</p><p>The line(s) that is generating the error is here (from demo.c)
</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/install_sound" target="_blank"><span class="a">install_sound</span></a><span class="k2">(</span>DIGI_AUTODETECT, MIDI_AUTODETECT, NULL<span class="k2">)</span> <span class="k3">!</span><span class="k3">=</span> <span class="n">0</span><span class="k2">)</span> <span class="k2">{</span>
      <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"Error initialising sound\n%s\n"</span>, <a href="http://www.allegro.cc/manual/allegro_error" target="_blank"><span class="a">allegro_error</span></a><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, MIDI_NONE, NULL<span class="k2">)</span><span class="k2">;</span>
   <span class="k2">}</span>
</pre></div></div><p>
and allegro_error is &quot;Failed to init digital sound driver&quot;</p><p>I am going to have to work on getting a debugger on that machine to see if I can find out any more relevant information.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Austin)</author>
		<pubDate>Wed, 20 Sep 2006 02:15:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Mike is this with the special debug compiled version of allegro?</p><p>There are lines like this:
</p><div class="source-code snippet"><div class="inner"><pre>_TRACE<span class="k2">(</span><span class="s">"Can't set DirectSound cooperative level (%s).\n"</span>, ds_err<span class="k2">(</span>hr<span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

In the windows code, so I would expected a more detailed error.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Wed, 20 Sep 2006 02:27:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Take this with a grain of salt...</p><p>I recall reading on these forums a few weeks ago that for Windows sound problems, one should explicitly tell Allegro to use DirectX sound drivers because the default selected by AUTODETECT was an allegro specific driver and not necessarily the DirectX driver.</p><p>So perhaps try using DIGI_DIRECTX instead of DIGI_AUTODETECT.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Runesabre)</author>
		<pubDate>Thu, 21 Sep 2006 07:25:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Better use the allegro.ini (I think...) config file for that, rather than hardcode it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Thu, 21 Sep 2006 11:20:13 +0000</pubDate>
	</item>
</rss>
