Mail Archives: djgpp/1997/01/24/00:45:48
Tony O'Bryan writes:
>Is there a flag somewhere that determines when a particular Allegro
>sound sample has finished playing? I wrote a routine to load a raw
I hate to admit this, but at present there is no such flag, or at least
nothing that is externally visible. If you really need it, this would be
easy to hack into sound.c, with the same loop that stop_sample() uses to
detect whether the sound is still active.
It's a silly oversight on my part. Sorry :-) But, I've been talking with
Tero Parvinen about some extensions to the sound API, and if his ideas
ever become a reality (ie. if he does the work of coding them for me :-)
it will be easy to detect this. So you can probably expect to see an
is_sound_playing() function in a future release...
/*
* Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
* Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'.
*/
- Raw text -