The problem is in playing a list of tracks. Suppose I
have an array containing the files to be played as
strings:
TracksToPlay()
and I want to play them one after another in a
simple loop:
for each s in TracksToPlay
mciSendString(s, etc
next
The player will be launched but there's no apparent
way to get it to play the tracks one by one *while
still allowing it to be interrupted*. As soon as it starts
to play the first one, it's told to play the next one,
and so on through the loop to the end. The result is
that all you hear is the last track in the list.
If I tell the player to wait until it finishes
playing a track before starting the next one, the
system freezes - the player takes control and there's
no way to interrupt it and no way for the user to
do anything else. It even stops the display
from being re-drawn - blank areas appear until
it stops playing.
So what I'm looking for is a way to start playing
a track that will hand control back to the system
but allows me to test to see if the player has
finished a track before letting it continue with
the next one or pause/stop it if the user hits
one of those buttons.
Peter.
Sorry, what problem, specifically? It has a Stop event so you can know
when the current song is done; and of course it has methods to pause
(Stop) and resume (Play) the song at any time. Seems like it should do
everything you need. But maybe I'm missing something?
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.19/556 - Release Date: 28/11/2006
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>