PCM vs WAV: audio representation and file format
Compare PCM audio with WAV files, including integer and floating-point samples, compressed WAVE data and storage requirements.
Audio representation and container
| Property | PCM | WAV |
|---|---|---|
| Type | Audio sample representation | RIFF-based file container |
| Compression | Uncompressed linear PCM | Depends on format tag |
| Metadata | Not intrinsic to raw samples | Chunks can store format, timing and metadata |
| File extension | None required | Usually .wav |
A raw PCM stream needs external information about sample rate, sample width, channel layout and byte order. WAVE typically carries these properties in its format chunk and sample data in a data chunk.
Integer, floating point and compressed WAVE
Integer PCM represents discrete sample levels; floating-point PCM is often used for production workflows and can accommodate values above nominal full scale before output conversion. WAVE can also contain ADPCM or other registered encodings. The extension alone is therefore not proof that a file contains uncompressed PCM. WAVE_FORMAT_EXTENSIBLE can identify channel mapping and valid sample precision.
Data rate and file size
For packed PCM, bits per second = sample rate × stored bits per sample × channels. Stereo 48 kHz, 24-bit packed audio is 2,304,000 bits/s, or 1.0368 GB per hour before headers. A 24-bit signal stored in a 32-bit slot uses 32 bits per sample in the storage calculation. Classic RIFF uses 32-bit size fields; RF64 or Wave64 may be needed for large recordings.
Conversion and preservation
Wrapping identical PCM samples in another container need not change the audio. Resampling, reducing precision, applying gain or converting to lossy compression can change sample values. Keep the native source and relevant metadata for archiving.
Specifications and sources
Further reading
Windows playback
Media Player Codec Pack
- PCM — CW-Lossless / LAV Audio. Uncompressed audio; output depends on the selected device. — format support. MPC-HC.
- WAVE — CW-Lossless / LAV Audio. PCM and WAV-family playback. — format support. MPC-HC.
MPC-FFmpeg (Plus x64)
MPC-FFmpeg provides an alternative playback route for the following formats:
MPC-FFmpeg uses stereo output; use the normal playback path for multichannel output or specialist audio processing.