Windows 95 CD-ROM AutoPlay for Audio and Data
Windows 95 revolutionized desktop computing by introducing seamless disc detection through its AutoPlay and AutoRun architectures. Rather than requiring users to manually navigate file directories or launch dedicated media players, the operating system continuously monitored optical drives, read the disc’s Table of Contents (TOC), and automatically triggered the appropriate action based on whether the disc contained standard file system data, Red Book digital audio, or a hybrid of both.
Hardware Polling and Media Change Notification
The auto-playing process began at the driver level. Windows 95 used
32-bit protected-mode CD-ROM drivers that periodically polled the
optical drive using standard ATAPI or SCSI commands, such as
TEST UNIT READY. When a user inserted a disc, the drive
returned a "Unit Attention" condition, signaling a Media Change
Notification (MCN).
Once the operating system detected this change, the CD-ROM file system driver (CDFS) took control to initialize the media and read its Table of Contents.
Disc Identification: Audio vs. Data
The Table of Contents stored in the disc’s lead-in area defined whether each track contained data (Yellow Book) or digital audio (Red Book / CD-DA). Windows 95 evaluated this track descriptor information to determine the media type:
- Pure Audio CDs: If the TOC revealed that all tracks
were audio, Windows 95 triggered the "AutoPlay" subsystem. The operating
system queried the system registry to identify the default handler for
the
AudioCDfile type, which was configured by default to launchcdplayer.exe. The application then immediately instructed the CD-ROM hardware to route audio output directly through the analog audio cable connected to the PC's sound card. - Pure Data CDs: If the TOC indicated that the first
track was a data track, Windows 95 passed handling to the Windows
Explorer shell under the "AutoRun" subsystem. The shell looked
specifically at the root directory of the disc for a plain-text
configuration file named
autorun.inf. If found, the shell parsed the file's[autorun]section to display custom disc icons in "My Computer" and automatically execute the command line specified under theopen=key (typically a software installer or splash screen).
Handling Mixed-Mode and Enhanced CDs
During the mid-1990s, game developers frequently used "Mixed-Mode" CDs (Track 1 containing data, followed by multiple Red Book audio tracks used for background music).
When evaluating Mixed-Mode discs, Windows 95 prioritized the data
track. Because Track 1 was marked as data, the OS treated the disc as a
computer program rather than a music album, parsing
autorun.inf and launching the software. Once the game
executable was running, it could access the subsequent audio tracks
directly using the Media Control Interface (MCI) to play soundtrack
audio while reading game assets from the data partition.
For later Enhanced CDs (CD-Extra / CD Plus), which placed audio
tracks in the first session and data tracks in a second session to
prevent home stereos from playing data noise, Windows 95's
multisession-capable drivers read both sessions, allowing
autorun.inf to launch multimedia features while still
allowing audio tools to parse the sound tracks.
User Override and Bypass
Because automatic execution carried potential performance and
security implications, Microsoft built a hardware-level bypass into
Windows 95. Users could hold down the Shift key while
inserting a disc to suppress both AutoRun executable launching and
AutoPlay audio playback. Additionally, users could permanently disable
Media Change Notification on a per-drive basis within the Windows 95
Device Manager by unchecking "Auto insert notification" in the CD-ROM
drive's properties.