Program Flow
The following figure illustrates the interaction between OS/2 multimedia
system components and the Media Control Interface String Test Sample program.
Source code is located in the \TOOLKIT\SAMPLES\MM\MCISTRNG subdirectory.
┌──────────────┐
│ String Test │
│Sample Program│
└─────────┬────┘
│
(4)│ (1)
┌──┴───────────┐───┌──────────────┐
│ Media Device │(2) │ Command │
│ Manager │───│ Table │
└─────────┬────┘ └──────────────┘
│
(4)│ (3)
┌──┴───────────┐
│ Media Driver │
│ │
└──────────────┘
- String Test waits for you to enter a string
command. When you select Send, the program calls mciSendString to
send the string command to the Media Device Manager (MDM).
- The MDM receives the string command and uses
the command table to parse the string and convert it to the media control
interface command format.
- The Media Device Manager passes the command
to the appropriate media driver, which acts on the command.
- Notification messages are sent back to the
application from the media device to indicate such operations as completion
of a device function or the passing of device ownership from one process
to another. These messages can be viewed in the Display Messages dialog
box of the String Test Sample.
[Back: MCISTRNG - Media Control Interface String Test Sample]
[Next: MMBROWSE - Image Browser Sample]