Mail Archives: djgpp/1997/01/20/09:30:43
From: | aho450s AT nic DOT smsu DOT edu (Tony O'Bryan)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Detecting end of Allegro sound sample
|
Date: | Mon, 20 Jan 1997 02:41:55 GMT
|
Organization: | Southwest Missouri State University
|
Lines: | 8
|
Message-ID: | <32e29223.9218202@ursa.smsu.edu>
|
NNTP-Posting-Host: | forseti.i53.smsu.edu
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Is there a flag somewhere that determines when a particular Allegro sound sample
has finished playing? I wrote a routine to load a raw sound sample from disk
and play it using Allegro, but I can't find a way to detect when the sound has
stopped.
I could load it into memory, play it, then release it after a suitable amount of
time has passed; but that's clunky. What I want to do is load the sound, play
it, detect its termination, and then release it.
- Raw text -