Each WMA file features a single audio track in one of the four sub-formats: WMA, WMA Pro, WMA Lossless, or WMA Voice. These formats are implemented differently from one another, such that they are technically distinct and mutually incompatible; that is to say, a device or software compatible with one sub-format does not therefore automatically support any of the other codecs. Each codec is further explained below.
Windows Media Audio Windows Media Audio (WMA) is the most common codec of the four WMA codecs. The colloquial usage of the term
WMA, especially in marketing materials and device specifications, usually refers to this codec only. The first version of the codec released in 1999 is regarded as WMA 1. In the same year, the
bit stream syntax, or
compression algorithm, was altered in minor ways and became WMA 2. which reduces
latency for encoding and decoding. Fundamentally, WMA is a transform coder based on
modified discrete cosine transform (MDCT), somewhat similar to
AAC,
Cook and
Vorbis. The bit stream of WMA is composed of superframes, each containing 1 or more frames of 2048 samples. If the bit reservoir is not used, a frame is equal to a superframe. Each frame contains several blocks, which are 128, 256, 512, 1024, or 2048 samples long after being transformed into the frequency domain via the MDCT. In the frequency domain, masking for the transformed samples is determined, and then used to requantize the samples. Finally, the
floating point samples are decomposed into coefficient and exponent parts and independently
huffman coded. Stereo information is typically
mid/side coded. At low bit rates,
line spectral pairs (typically less than 17 kbit/s) and a form of noise coding (typically less than 33 kbit/s) can also be used to improve quality. Like AAC and Ogg Vorbis, WMA was intended to address perceived deficiencies in the MP3 standard. Given their common design goals, the three formats ended up making similar design choices. All three are pure transform codecs. Furthermore, the MDCT implementation used in WMA is essentially a superset of those used in Ogg and AAC such that WMA iMDCT and windowing routines can be used to decode AAC and Ogg Vorbis almost unmodified. However, quantization and stereo coding is handled differently in each codec. The primary distinguishing trait of the WMA Standard format is its unique use of 5 different block sizes, compared to MP3, AAC, and Ogg Vorbis which each restrict files to just two sizes. WMA Pro extends this by adding a 6th block size used at 88.2/96 kHz sampling rate. Certified
PlaysForSure devices, as well as a large number of uncertified devices, ranging from portable hand-held music players to set-top
DVD players, support the playback of WMA files. Most PlaysForSure-certified online stores distribute content using this codec only. In 2005,
Nokia announced its plans to support WMA playback in future Nokia handsets. In the same year, an update was made available for the
PlayStation Portable (version 2.60) which allowed WMA files to be played on the device for the first time.
Windows Media Audio Professional Windows Media Audio Professional (WMA Pro) is an improved lossy codec closely related to WMA standards. It retains most of the same general coding features, but also features improved entropy coding and quantization strategies as well as more efficient stereo coding. Notably, many of the WMA standard's low bitrate features have been removed, as the core codec is designed for efficient coding at most bitrates. Its main competitors include
AAC,
HE-AAC,
Vorbis, Dolby Digital, and DTS. It supports 16-bit and 24-bit sample bit depth, sampling rates up to 96 kHz, and up to eight discrete channels (
7.1 channel surround). WMA Pro also supports
dynamic range compression, which reduces the volume difference between the loudest and quietest sounds in the audio track. According to Microsoft's Amir Majidimehr, WMA Pro could theoretically go beyond 7.1 surround sound and support "an unlimited number of channels"; however, Microsoft chose to limit its current capability to eight (7.1 discrete channels). The codec's bit stream syntax was frozen at the first version, WMA 9 Pro. Later versions of WMA Pro introduced low-bit rate encoding, low-delay audio, frequency interpolation mode, and an expanded range of
sampling rate and
bit-depth encoding options. A WMA 10 Pro file compressed with frequency interpolation mode comprises a WMA 9 Pro track encoded at half the original sampling rate, which is then restored using a new compression algorithm. In this situation, WMA 9 Pro players which have not been updated to the WMA 10 Pro codec can only decode the lower quality WMA 9 Pro stream. Starting with WMA 10 Pro, eight channel encoding starts at 128 kbit/s, and tracks can be encoded at the native audio CD resolution (44.1 kHz, 16-bit), previously the domain of WMA Standard. Despite a growing number of supported devices and its superiority over WMA, WMA Pro still has little hardware and software support. Some notable exceptions to this are the
Microsoft Zune (limited to stereo),
Xbox 360,
Windows Mobile-powered devices with Windows Media Player 10 Mobile, newer
Toshiba Gigabeat and
Motorola devices, and devices running recent versions of the
Rockbox alternative firmware. In addition, WMA Pro is a requirement for the
WMV HD certification program. On the software side,
Verizon utilizes WMA 10 Pro for its V CAST Music Service, and
Windows Media Player 11 has promoted the codec as an alternative to WMA for copying audio CD tracks. WMA Pro is supported in Silverlight as of version 2 (though only in stereo mode). In the absence of the appropriate audio hardware, WMA Pro can automatically
downmix multichannel audio to stereo or
mono, and 24-bit resolution to 16-bit during playback. A notable example of WMA Pro being used instead of WMA Standard is the NBC Olympics website which uses WMA 10 Pro in its low-bitrate mode at 48 kbit/s.
Windows Media Audio Lossless As part of the Windows Media 9 series, Microsoft introduced
Windows Media Audio Lossless in early 2003, a
lossless audio format sharing the .wma file extension as its lossy counterparts. It is designed to store a digital audio stream (such as a
CD-Audio track) at some fraction of the original. Each sample in a channel can be encoded at up to 24 bits, at a rate of 96 KHz, with up to 6 discrete channels (for
5.1 surround sound). The container is also said to have dynamic range compression control. Like WMA Pro, the WMA Lossless decoder can perform downmixing when capable audio hardware is not present. While the details of the format have never been publicly documented, it has been reverse-engineered for use on non-Microsoft platforms by the open source
FFmpeg project. Only 16-bit WMA files are supported as of 2012. Designed for archival purposes, it competed with
ATRAC Advanced Lossless,
Dolby TrueHD,
DTS-HD Master Audio,
Shorten,
Monkey's Audio,
FLAC,
Apple Lossless, and
WavPack. Since late 2011, the last three have the advantage of having
open source encoders, no licensing costs, and availability on nearly any
operating system. The typical compression ratio for music varies between 1.7:1 and 3:1. It compresses an audio CD to a range of 206 to 411 MB, at bit rates of 470 to 940 kbit/s. Like WMA Standard, WMA Lossless was adopted by a few online distribution stores in the mid-2000s. Hardware support for the codec became available on the first-party
Zune 4, 8,
30,
80, 120 (with firmware version 2.2 or later), and
HD portable media players and the
Xbox 360. Cowon S9,
Bang & Olufsen Serenata, Sony Walkman NWZ-A and NWZ-S series, Toshiba Gigabeat S and V models, Toshiba T-400, the Meizu M3, and
Best Buy-exclusive Insignia NS-DV, Pilot, and Sport music players. The Logitech Squeezebox Touch was also updated to support the format natively; previously it was added through transcoding.
Windows Mobile-powered devices with Windows Media Player 10 Mobile,),
ACELP, and other codecs. Designed for low-bandwidth, voice playback applications, it employs low-pass and high-pass filtering of sound outside the human speech frequency range to achieve higher compression efficiency than WMA. It can automatically detect sections of an audio track containing both voice and music and use the standard WMA compression algorithm instead. ==Sound quality==