delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/26/03:48:48

Message-Id: <9706260748.AA23434@sun4nl.NL.net>
Date: Thu, 26 Jun 1997 10:42:00 +0200
From: Rob den Boer <rob DOT den DOT boer AT derijke DOT nl>
Subject: AW: sound, no sound in Allegro
To: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Cc: djgpp <djgpp AT delorie DOT com>

Hi Shawn,


install_sound() won't fail in the absence of a soundcard, because I have
provided a special nosound driver for exactly this case, so that there
will always be a dummy device for playing sounds. You should then be
able to test if (digi_driver == &digi_none) and
(midi_driver == &midi_none), to see whether a soundcard was found.


You were right, the no-sound options works.  My program crashed because   
1) I had a sounds.cfg floating around in my directory, and 2) my program   
didn't exit while install_sound returned an error ...

I'll be standing in the corner shaming myself...

bibi
Rob

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019