I'm writing a small, simple audio player. All it has to do is
work through a list of files and play them, one by one, but
I'd like to be able to stop it completely, pause (and resume)
and stop the current track and skip to the next. I'm using
mciSendString to send the commands to waveaudio.
It plays the list just fine, using the "wait" flag with
the "play" command, but I con't find a way of stopping
or pausing it, since "wait" doesn't hand back control to
the system. I'd like to be doing other things while it's
playing, not the least of which is pausing, stopping, etc.
The "notify" flag seems to be appropriate but I can't figure
it out. I'd like to do something like:
Playing = True
mciSendString("play something" etc // WITHOUT the wait flag
while Playing
(do things)
wend
This would mean that control is handed back as soon as playing
starts, allowing the user to operate the stop, pause, etc
buttons, something that can't be done if it's playing with
"wait".
The "notify" flag seems to be what I want but it
needs a handle to a window which in this case would
just do
Playing = False
but I don't understand how to set this up.
Any ideas, anyone?
This on a WinXP SP2, system, BTW.
Peter.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.17/553 - Release Date: 27/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>