Media Control Interface

The Media Control InterfaceMCI for short — is a high-level API developed by Microsoft and IBM for controlling multimedia peripherals connected to a Microsoft Windows or OS/2 computer, such as CD-ROM players and audio controllers.

MCI makes it very simple to write a program which can play a wide variety of media files and even to record sound by just passing commands as strings. It uses relations described in Windows registries or in the [MCI] section of the file system.ini. One advantage of this API is that MCI commands can be transmitted both from the programming language and from the scripting language (open script, lingo aso). Example of such commands are mciSendCommand or mciSendString.

After a few years, the MCI interface has been phased out in favor of the DirectX APIs first released in 1995.[1].

MCI Devices

The Media Control Interface consists of 7 parts:

  • cdaudio
  • digitalvideo
  • overlay
  • sequencer
  • vcr
  • videodisc
  • waveaudio

Each of these so-called MCI devices (e.g. CD-ROM or VCD player) can play a certain type of files, e.g. AVIVideo plays .avi files, CDAudio plays CD-DA tracks among others. Other MCI devices have also been made available over time.

Playing media through the MCI interface

To play a type of media, it needs to be initialized correctly using MCI commands. These commands are subdivided into categories:

  • System Commands
  • Required Commands
  • Basic Commands
  • Extended Commands

A full list of MCI commands can be found at Microsoft's MSDN Library.

gollark: What do you plan to actually use that for?
gollark: You can get something like 100W (20V/5A, I think), as USB-C is also used for laptops.
gollark: Given that you'd probably be missing out on modern fast CPU designs, and can't use x86-64 with extensions because licensing, emulation might be faster.
gollark: But a RISC-V one.
gollark: Really? Isn't PCIe a bit high latency compared to onboard RAM?

References

  1. Multimedia Technologies. 2010. p. 55. ISBN 9780070669239. Retrieved 2017-11-29.


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.