TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Edwin Groothuis
from: Jorgen De Gier
date: 1996-03-10 19:06:00
subject: mciPlayFile() question

Hallo Edwin,

Edwin Groothuis schreef dit aan All:

 EG> does somebody known what the first parameter of mciPlayFile(), HWND
 EG> hwndOwner, does? I'm actually looking for a way to tell if an asynchronous
 EG> played audiofile is stopped. I've tried to intercept WM_CONTROL and
 EG> MM_MCINOTIFY at the hwndOwner, but without luck...

mciPlayFile needs a message queue, the HWND supplies it. ( I guess )

You need to take a look at mciSendCommand.
Look at the message-commands MCI_OPEN, MCI_PLAY and MCI_CLOSE.
The MCI_PLAY_PARMS structure has a callback option, use that one for
intercepting MM_MCINOTIFY.

If you're unable to make it work, ask me for a sample code. I've delt with
it a while ago and I have to dig deep for a working example.

( I think I've seen the Multimedia online manuals at
http://www.austin.ibm.com/os2games )

Toedeloe,
Jorgen de Gier

--- GEcho 1.00
* Origin: Hoi! (2:280/606.9)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 280/606 6 0 801 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.