Mail Archives: djgpp/1998/05/07/15:46:23
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
- Raw text -