Index   Commented   Search   About

Playback and Positioning

A number of MCI commands, such as play (MCI_PLAY), stop (MCI_STOP), pause (MCI_PAUSE), resume (MCI_RESUME), and seek (MCI_SEEK), affect the playback or positioning of a multimedia file. If an MCI device receives a playback command while another playback command is in progress, it accepts the command and either stops or supersedes the previous command.

Many MCI commands, such as set (MCI_SET), do not affect playback. A notification from one of these commands does not interfere with pending playback or position commands as long as the notifications are not performed from the same instance of the driver. For example, you can issue a set or status (MCI_STATUS) command while a device is performing a seek command without stopping or superseding the seek command.

However, there can be only one pending notification. For example, if an application requests a notification for play and follows that request with status "start position notify," the play notification will return "superseded" and the notification for the status command will return when it is finished. In this case, however, the play command will still succeed, even though the application did not receive the notification.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun