This section shows you how to write a media control driver (MCD) by illustrating the programming interfaces used by streaming and nonstreaming MCDs. The following discussion focuses on the MCDs depicted in the Duet Player sample programs (see the OS/2 Multimedia Application Programming Guide for details.) The waveform audio MCD uses SPI data streaming services to handle the creation and management of source and target stream handlers. However, the CD audio MCD typically has no data flow associated with it as most CD audio devices process data internally (internal to the device without any help from the main CPU).
Source code is provided for the following media control driver samples located in the \TOOLKIT\SAMPLES\MM subdirectory:
Media Control Driver Template (MCDTEMP)