File Formats
  • Audio
  • Video
  • Images
  • 3D & CAD
  • Documents
  • Data
  • Code
  • System
Audio
  • Uncompressed
  • Lossless
  • Lossy
  • MIDI & trackers
  • Music projects
  • Instruments & samples
  • Playlists
  1. Home
  2. Audio
  3. Uncompressed
  4. WAV
  5. Metadata chunks
  6. fact
.WAV
  • Overview
  • RIFF chunks
  • Format chunk
  • Sample data
  • Metadata chunks
    • fact
    • LIST INFO
    • cue
    • smpl
    • bext
  • RF64

fact chunk

The fact chunk gives the length of the audio in sample frames. For PCM the length follows from the data size, but for compressed audio it does not, so the original RIFF specification requires a fact chunk in every WAV file that is not PCM.

Fields

OffsetSizeTypeNameDescription
04char[4]ckIDfact
44u32ckSize4, sometimes more
84u32dwSampleLengththe number of sample frames per channel
00000000  66 61 63 74 04 00 00 00 44 AC 00 00              fact....D...
A fact chunk for one second of audio at 44,100 Hz.

When it appears

  • ADPCM, µ-law, A-law, GSM and MP3 data in a WAV file: required by the original specification, and used by players to show the length.
  • Floating point and extensible files: many writers add one, and some readers expect it.
  • Integer PCM: optional, since the frame count is the data size divided by the block align.

In an RF64 file a count too large for 32 bits is written as 0xFFFFFFFF, and the real value is the sampleCount field of the ds64 chunk.

© 2026 fileformats.org About Contact Made by Lewpen