Windows legacy audio components

Obsolete Microsoft Windows audio APIs

This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (September 2009) (Learn how and when to remove this message)

|

This article describes audio APIs and components in Microsoft Windows which are now obsolete or deprecated.

## Multimedia Extensions (MME)

[edit]

The MME API or the Windows Multimedia API (also known as WinMM) was the first universal and standardized Windows audio API. Wave sound events played in Windows (up to Windows XP) and MIDI I/O use MME. The devices listed in the Multimedia/Sounds and Audio control panel applet represent the MME API of the sound card driver.

The Multimedia Extensions (WaveIn/WaveOut interfaces) were released in autumn 1991 to support sound cards, as well as CD-ROM drives, which were then becoming increasingly available. The Multimedia Extensions were released to Original Equipment Manufacturers (OEMs), mainly CD-ROM drive and sound card manufacturers, and added basic multimedia support for audio input and output and a CD audio player application to Windows 3.0. The Multimedia Extensions' new features were not available in Windows 3.0 real mode, only in standard and 386 enhanced mode. Windows 3.1x would later incorporate many of its features. Microsoft developed the Windows Sound System sound card specification to complement these extensions.

In Windows 95/ME, MME lacks mixing multiple audio streams during playback and device sharing, so only one audio stream can be rendered at a time. But some sound card drivers can emulate more than one MME device (or support more than a single streaming client) so it could work with MME too. Starting from Windows 2000, MME supports playback device sharing (multi-client access) and can mix playback streams together. Starting from Windows XP, MME started to support recording device sharing.

In earlier Windows versions, MME supported up to two channels of recording, 16-bit audio bit depth and sampling rates of up to 44100 samples per second with all the audio being mixed and sampled to 44100 samples per second.[citation needed] Starting from Windows 2000, MME supports up to 384000 samples per second, up to 8 channels, and up to 32 bits per sample.

Prior to Windows XP, the number of MME/WinMM device interfaces (waveIn, waveOut, midiIn, midiOut, mixer, and aux) is restricted to 10. This limit is raised from 10 to 32 in Windows XP.[1][2]

Device name length in MME is restricted to 31 characters so long device names may appear only partially.

### Issues

[edit]

A fault in the MME WaveIn/WaveOut emulation was introduced in Windows Vista: if sample rate conversion is needed, audible noise is sometimes introduced, such as when playing audio in a web browser that uses these APIs. This is because the internal resampler, which is no longer configurable, defaults to a fast integer-based linear interpolation, which was the lowest-quality conversion mode that could be set in previous versions of Windows. The resampler can be set to a high-quality mode via a hotfix for Windows 7 and Windows Server 2008 only.[3][4]

## Audio Compression Manager

[edit]

Audio Compression Manager (ACM) is a Windows multimedia framework that manages audio codecs (compressor/decompressors).[5] ACM can also be considered an API specification. A codec must conform to the implicit ACM specification to work with Windows Multimedia. ACM files can be recognized by their filename extension `.acm`. ACM files also use RIFF-compatible filetypes such as WAV or AVI as a "wrapper" to store audio data encoded by any audio codec supported by ACM.

ACM is considered an outdated framework/API and Microsoft now encourages the use of at least DirectShow. However, unlike ACM and the related Video Compression Manager (VCM), DirectShow provides no means to encode files for end-users but requires developers to build end-to-end graphs for encoding content. ACM also does not support VBR audio streams; therefore newer codecs like MPEG-4 AAC, Ogg Vorbis, FLAC etc. cannot be supported through ACM if using variable bitrates. Though many sources state the contrary, Ogg Vorbis does work well with the ACM, e.g. when embedded in a RIFF-compatible file (such as a WAV or AVI file as mentioned earlier), provided the Ogg Vorbis stream is encoded at a constant bitrate.

Windows comes with a number of ACM codecs pre-installed. For a list of these codecs, consult WAV file § Comparison of coding schemes.

ACM codecs are identified by a two-byte code (TwoCC) allocated by Microsoft.

## DirectX Audio Libraries

[edit]

* DirectSound
* DirectMusic

## KMixer

[edit]

This section needs to be updated. The reason given is: All the Windows versions mentioned here have been unsupported since at least 2010.. Please help update this article to reflect recent events or newly available information. (March 2025)

|

KMixer is the Kernel Audio Mixer driver, a part of WDM Audio in Windows 98 to Windows XP which handles the mixing of multiple sound buffers into an output.

The tasks performed by KMixer.sys:

* Mixing multiple PCM audio streams
* Format, bit-depth (also known as word-length) and sample-rate conversion
* Speaker configuration and channel mapping

In Windows 98, Windows 2000 and Windows Me, the KMixer maximum sample rate is 100 kHz. In Windows XP SP1 and later, KMixer audio sampling rate supports a maximum of 200 kHz.[6][7][8]

### Issues

[edit]

The KMixer was designed to aid the applications by relieving them from the need to perform the mixing of audio streams, especially on low-end sound cards that didn't support multiple sound streams. However, it introduced some significant problems.

First, the latency of KMixer is around 30 ms [9] and it cannot be reduced, because this component sits just right above the port class audio driver, so every audio stream, including those issued by DirectSound (except in cases of hardware mixing) and WinMM, come through the kernel mixer.[10] If the audio hardware supports hardware mixing (also known as hardware buffering or DirectSound hardware acceleration), DirectSound buffers directly to the rendering device.[11] Thus, if DirectSound streams use hardware mixing, KMixer is bypassed.[12]

In earlier releases like the original release of Windows 98, KMixer tried to mix every data format that passed through it, even those it did not support. It caused various problems with media players that tried to pass AC3-encoded surround sound streams through S/PDIF output of the sound card to an external home cinema receiver. This was corrected with Windows Me and provided as a hotfix for Windows 98 Second Edition and Windows 2000 SP2.[13] Starting with Windows Me, the waveOut, DirectSound, and DirectShow APIs support non-PCM formats such as AC-3 or WMA over S/PDIF and non-PCM data goes directly to the class driver instead of going through KMixer.

A new kernel-mode API, Direct Kernel Streaming, was also introduced in Windows 98 in order to bypass the KMixer and avoid problems associated with it.

KMixer does not alter the sound in the majority of cases.[6] Also, there are many ways to bypass KMixer without the need of an extra plugin to access DirectSound, ASIO, Direct Kernel Streaming or WASAPI. In Windows XP, for example, the usage of DirectSound (which Winamp uses by default) with a hardware mixer is a way to bypass KMixer.[9]

KMixer was removed in Windows Vista. It is replaced by the user-mode WASAPI (Windows Audio Session API) Audio Engine which is part of the revamped audio architecture. The Audio engine can operate in Shared mode or Exclusive mode. In shared mode, mixing still takes place. Pre-mixed PCM audio is sent to the driver in a single format (in terms of sample rate, bit depth and channel count) that is configurable from the Sounds control panel. WASAPI Exclusive mode bypasses the mixer, as does using third-party audio APIs like OpenAL or ASIO, which still have direct access to the hardware.[14]

## Kernel Streaming

[edit]

Kernel Streaming or Direct Kernel streaming (Direct KS) is a technique that supports kernel-mode processing of streamed data. It enables efficient real-time streaming for multimedia devices such as sound cards and TV tuner cards. Kernel streaming allows a device driver to create DirectShow-like filters and pins in kernel mode, providing access to hardware, lower latency communication and still be used within a DirectShow filter graph.

Kernel streaming was introduced in Windows 98. When the sound card uses a custom driver for use with the system supplied port class driver PortCls.sys or implements a mini-driver for use with the streaming class driver, applications can bypass the KMixer completely and use the kernel streaming interfaces instead to directly interact with audio driver and reduce latency. Windows 98 includes the first kernel streaming driver, Stream.sys. In Windows XP, Microsoft introduced another improved kernel streaming class driver, AVStream.

Music players such as JRiver Media Center, JPLAY, foobar2000, Audirvana Studio and Winamp support kernel streaming. Compared to the regular "WaveOut method" in Microsoft Windows, kernel streaming requires less CPU time. This comes at the expense of bypassing the KMixer and Windows volume control. Kernel streaming also does not allow device sharing unless kernel-mode audio driver supports multiple clients.

Prior to Windows Vista, Kernel Streaming offered only a single client-to-driver communication protocol with buffer chain, as used in MME. Starting from Vista, new Real-Time Audio (RT Audio, not to be confused with the RTAudio codec) protocol is introduced, based on a single circular buffer. RT Audio protocol is implemented by WaveRT port driver in portcls.sys. In Vista and later versions, Audio Subsystem supports both protocols so it can interact with both legacy and new audio drivers. But most audio applications that use KS support only a single protocol (legacy in most cases) so they can communicate only with a single type of audio drivers.

## See also

[edit]

* WDM audio in Windows 98
* Windows Vista audio architecture
* DirectX
* Universal Audio Architecture (UAA)

## References

[edit]

1. ^ Windows audio driver API basics
2. ^ Windows 2000 Device Interface Limits
3. ^ "Policy for Sample Rate Conversion of Audio Streams (Windows Drivers)". Dev Center - Hardware. Microsoft. Retrieved 2012-01-17.
4. ^ "Artifacts on Windows 7 due to sample rate conversion". Windows Desktop Development Forums discussion thread. Retrieved 2012-01-17.
5. ^ "Audio Compression Manager". Microsoft. May 30, 2018.
6. ^ a b "Policy for Mixing Audio Streams and Setting the Output Sample Rate". MSDN. Retrieved 2010-11-23.`{{cite web}}`: CS1 maint: url-status (link)[dead link]
7. ^ "Windows Kmixer". Retrieved 2010-11-23.`{{cite web}}`: CS1 maint: url-status (link)[dead link]
8. ^ "What is "bitperfect", and what do I have to do for bitperfect playback?". Retrieved 2010-11-23.`{{cite web}}`: CS1 maint: url-status (link)[dead link]
9. ^ a b "KMixer Latency". MSDN. Retrieved 2010-11-23.
10. ^ CakeWalk - Windows Pro Audio Roundtable
11. ^ DirectSound Driver Models
12. ^ Overview of DirectSound Hardware Acceleration
13. ^ Non-PCM Wave Formats and WDM Audio Drivers
14. ^ "Winamp OpenAL Output Plug-in". Retrieved 2010-11-23.

## External links

[edit]

* Information on Kmixer at Microsoft website
* KMixer Latency at Microsoft website
* MS ACM Drivers(Codecs) Details
* How to write Microsoft Audio Compression Manager Codec (Installable Driver)
* foobar2000 plug-in — Kernel Streaming plug-in for foobar2000
* Winamp Kernel Streaming Plugin

## Broken links

[edit]

* Kernel Streaming components
* MME API (WinMM)
* Kernel Streaming components (documented for re-implementation in ReactOS)

* v
* t
* e

Microsoft Windows components

* APIs
* Architecture
* 9x
* NT
* Booting process
* Games

Management
tools|

* App Installer
* Command Prompt
* Control Panel
* Device Manager
* DirectX Diagnostic Tool
* Disk Cleanup
* Drive Optimizer
* Driver Verifier
* Event Viewer
* IExpress
* Management Console
* Netsh
* Performance Monitor
* PowerShell
* Recovery Console
* Resource Monitor
* Settings
* Sysprep
* System Configuration
* System File Checker
* System Information
* System Policy Editor
* System Restore
* Task Manager
* Windows Error Reporting
* Windows Ink
* Windows Installer
* Windows Update
* Windows Insider
* WinRE
* WMI

Apps|

* 3D Viewer
* Calculator
* Calendar
* Camera
* Character Map
* City Art Search
* Clipchamp
* Clock
* Company Portal
* Copilot
* Edge
* Fax and Scan
* Feedback Hub
* Get Help
* Magnifier
* Mail
* Media Player
* 2022
* Mesh
* Messaging
* Mobility Center
* Money
* Movies & TV
* Narrator
* News
* Notepad
* OneDrive
* OneNote
* Paint
* PC Manager
* People
* Phone Link
* Photos
* Quick Assist
* Remote Desktop Connection
* Snipping Tool
* Speech Recognition
* Sticky Notes
* Store
* Terminal
* Tips
* To Do
* Voice Recorder
* Weather
* Whiteboard
* Windows App
* Xbox

Shell|

* Action Center
* Aero
* AutoPlay
* AutoRun
* ClearType
* Explorer
* Search
* IFilter
* Indexing Service
* Namespace
* Saved search
* Special folder
* Start menu
* Task View
* Taskbar
* Windows Spotlight
* Windows XP visual styles

Services|

* BITS
* CLFS
* Error Reporting
* Multimedia Class Scheduler
* Service Control Manager
* Shadow Copy
* Task Scheduler
* Wireless Zero Configuration

File systems|

* CDFS
* DFS
* exFAT
* FAT
* IFS
* NTFS
* EFS
* Hard link
* links
* Mount Point
* Reparse point
* TxF
* ReFS
* UDF

Server|

* Active Directory
* Active DRM Services
* DFS Replication
* Distributed Transaction Coordinator
* DNS
* Domains
* Folder redirection
* Group Policy
* Hyper-V
* IIS
* MSMQ
* Network Access Protection
* Print Services for UNIX
* PWS
* Remote Desktop Services
* Remote Differential Compression
* Remote Installation Services
* Roaming user profiles
* Server Core
* SharePoint
* System Resource Manager
* Windows Deployment Services
* Windows Media Services
* WSUS

Architecture|

* Boot Manager
* Console
* CSRSS
* Desktop Window Manager
* Enhanced Write Filter
* Graphics Device Interface
* Hardware Abstraction Layer
* I/O request packet
* Imaging Format
* Kernel Transaction Manager
* Library files
* Logical Disk Manager
* LSASS
* MinWin
* NTLDR
* Ntoskrnl.exe
* Object Manager
* Open XML Paper Specification
* Portable Executable
* DLL
* EXE
* Registry
* Resource Protection
* Security Account Manager
* Server Message Block
* Shadow Copy
* SMSS
* System Idle Process
* USER
* WHEA
* Winlogon
* WinUSB

Security|

* Security and Maintenance
* AppLocker
* BitLocker
* Credential Guard
* Data Execution Prevention
* Defender
* Family features
* Kernel Patch Protection
* Mandatory Integrity Control
* Protected Media Path
* User Account Control
* User Interface Privilege Isolation
* Windows Firewall

Compatibility|

* COMMAND.COM
* Windows Subsystem for Linux
* WoW64

API|

* Active Scripting
* JScript
* VBScript
* WSH
* COM
* ActiveX
* ActiveX Document
* COM Structured storage
* DCOM
* OLE
* OLE Automation
* Transaction Server
* DirectX
* Native
* .NET
* Universal Windows Platform
* WinAPI
* Windows Mixed Reality
* Windows Runtime
* WinUSB

Games|

* Solitaire Collection
* Surf

Discontinued|

| Games|

* 3D Pinball
* Chess Titans
* FreeCell
* Hearts
* Hold 'Em
* InkBall
* Purble Place
* Solitaire
* Spider Solitaire
* Tinker

|

Apps|

* ActiveMovie
* Address Book
* Anytime Upgrade
* Backup and Restore
* Cardfile
* CardSpace
* CD Player
* Chat
* Contacts
* Cortana
* Desktop Gadgets
* Diagnostics
* DriveSpace
* DVD Maker
* Easy Transfer
* Edge Legacy
* Fax
* Food & Drink
* Groove Music
* Health & Fitness
* Help and Support Center
* HyperTerminal
* Imaging
* Internet Explorer
* Journal
* Make Compatible
* Maps
* Media Center
* Meeting Space
* Messaging
* Messenger
* Mobile Device Center
* Movie Maker
* MSN Dial-Up
* NetMeeting
* NTBackup
* Outlook Express
* Paint 3D
* Pay
* Phone Companion
* Photo Gallery
* Photo Viewer
* Program Manager
* Skype
* Sports
* Start
* Steps Recorder
* Syskey
* Travel
* WinHelp
* WordPad
* Write

Others|

* Desktop Cleanup Wizard
* File Protection
* Games for Windows
* HPFS
* Interix
* Media Control Interface
* MS-DOS 7
* Next-Generation Secure Computing Base
* POSIX subsystem
* ScanDisk
* Video for Windows
* Virtual DOS machine
* Windows on Windows
* Windows Services for UNIX
* Windows SideShow
* Windows System Assessment Tool
* Windows To Go
* WinFS

Spun off to
Microsoft Store|

* DVD Player
* File Manager
* Hover!
* Mahjong
* Minesweeper

*  Category
*  List

* v
* t
* e

Microsoft APIs and frameworks

Graphics and UI|

* Desktop Window Manager
* Direct2D
* Direct3D
* D3D (extensions)
* GDI / GDI+
* WPF
* Silverlight
* WinUI
* Windows Color System
* Windows Image Acquisition
* Windows Imaging Component
* DirectX Graphics Infrastructure (DXGI)
* Windows Advanced Rasterization Platform
* WinG

Audio|

* DirectMusic
* DirectSound
* XACT
* Speech API
* XAudio2

Multimedia|

* DirectX
* Media Objects
* Video Acceleration
* Xinput
* DirectInput
* DirectShow
* Managed DirectX
* Media Foundation
* XNA
* Windows Media
* Video for Windows

Web|

* MSHTML
* JScript
* VBScript
* BHO
* XDR
* SideBar Gadgets
* TypeScript

Data access|

* Data Access Components (MDAC)
* ADO
* ADO.NET
* ODBC
* OLE DB
* Extensible Storage Engine
* Entity Framework
* Sync Framework
* Access Database Engine
* MSXML
* OPC

Networking|

* Winsock
* LSP
* Winsock Kernel
* Filtering Platform
* NDIS
* Windows Rally
* BITS
* P2P API
* MSMQ
* DirectPlay

Communication|

* Messaging API
* Telephony API
* WCF

Administration and
management|

* Win32 console
* Windows Script Host
* WMI (extensions)
* PowerShell
* Task Scheduler
* Offline Files
* Shadow Copy
* Windows Installer
* Error Reporting
* Event Log
* Common Log File System

Component model|

* COM
* COM+
* ActiveX
* Distributed Component Object Model
* .NET Framework

Libraries|

* Framework Class Library
* Microsoft Foundation Classes (MFC)
* Active Template Library (ATL)
* Windows Template Library (WTL)

Device drivers|

* WDM
* WDF
* KMDF
* UMDF
* WDDM
* NDIS
* UAA
* VxD

Security|

* Crypto API
* CAPICOM
* Windows CardSpace
* Data Protection API
* Security Support Provider Interface (SSPI)

.NET|

* ASP.NET
* ADO.NET
* Remoting
* Silverlight
* TPL
* WCF
* WCS
* WPF
* WF

Software factories|

* Enterprise Library
* CCF

IPC|

* MSRPC
* Dynamic Data Exchange (DDE)
* Remoting
* WCF

Accessibility|

* Active Accessibility
* UI Automation

Text and multilingual
support|

* DirectWrite
* Text Services Framework
* Text Object Model
* Input method editor
* Language Interface Pack
* Multilingual User Interface
* Uniscribe

*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template