From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Soundcard problem with Allegro Date: Thu, 7 May 1998 19:38:17 +0100 Organization: None Message-ID: <8igoSIAZ+fU1Ew4w@talula.demon.co.uk> References: <354F49B2 DOT 44C5 AT bergen DOT mail DOT telia DOT com> <3551CF9E DOT 3A AT bergen DOT mail DOT telia DOT com> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 27 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk John Kismul writes: >I've tried the demo which comes with Allegro, and the sound works ok >there. But I've looked at the source code for it, and the demo uses the >play_sample function for playing sound while my game uses the voice >functions, maybe that's the problem. play_sample() is just a higher level wrapper on top of the voice functions, so it will end up calling those routines internally. If the Allegro code works correctly, that seems to suggest an error in your code. Please post the smallest possible example program that demonstrates your problem. >Ok, but when I install the sound driver, will this function use the >settings in the config file (digi_card) automatically, or do I have to >tell it what soundcard to use. Once you've set up the config file, you should just use autodetect parameters to install_sound(). In fact there is very little reason to ever use anything other than autodetect mode in your code, because it is far more sensible to use the external config program for selecting hardware types. -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ "Pigs use it for a tambourine" - Frank Zappa