Mail Archives: djgpp/1997/09/22/19:30:21
Michael Saure writes:
>is there a 'clean' way to do blocking sound output with Allegro?
>Or do I have to write a new function which play a sample and
>then waits for the apropriate dm_..(forgotten the exact name)-variable
>to change its value?
You have to write your own function. I'm not sure what dm_ variables you
are talking about, though: there are no such things in Allegro!
But anway. Just call allocate_voice() and voice_start() to trigger the
sound, sit there in a loop polling voice_get_position() until it has
finished, and then call deallocate_voice() to free it...
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -