Media Control Interface: Difference between revisions

Content deleted Content added
Undid revision 924442031 by 81.174.255.73 (talk)
m fixing lint errors
Line 1:
The '''Media Control Interface''' — '''MCI''' for short — is a high-level [[API]] developed by [[Microsoft]] and [[IBM]] for controlling [[multimedia]] [[peripheral]]s 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 [[string (computer science)|string]]s. It uses relations described in Windows registries or in the [MCI] section of the file <tt>{{mono|system.ini</tt>}}. 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 <tt>{{mono|mciSendCommand</tt>}} or <tt>{{mono|mciSendString</tt>}}.
 
{{As of | 2011 | alt = After a few years}}, the MCI interface has been phased out in favor of the [[DirectX]] APIs first released in 1995.<ref>{{cite book|title=Multimedia Technologies|isbn=9780070669239|pages=55|url=https://books.google.com/books?id=p2tFpmqQ7zMC&pg=PA55&dq=MCI+DirectX|accessdate=2017-11-29|date=2010}}</ref>.
 
== MCI Devices ==
Line 16:
*waveaudio
 
Each of these so-called MCI devices (e.g. [[CD-ROM]] or VCD player) can play a certain type of files, e.g. <tt>{{mono|AVIVideo</tt>}} plays <tt>{{mono|.avi</tt>}} files, <tt>{{mono|CDAudio</tt>}} plays [[CD-DA]] tracks among others. Other MCI devices have also been made available over time.
 
== Playing media through the MCI interface ==