A WAVE fact chunk can provide a sample-length value for non-PCM data. That value describes decoded media length in samples, while the data chunk’s size describes stored bytes. The PCM rule for dividing bytes by a fixed sample width cannot simply replace this information for every compressed WAVE format.
Use sample length to calculate time
Imagine an applicable fact sample length of 96,000 with a format sample rate of 48,000 Hz. The indicated media duration is two seconds. Its compressed data byte count is a separate property. Treating 96,000 as a byte count, or deriving sample count from an assumed sixteen-bit stereo payload, would apply information belonging to another representation.
Keep the cited format scope clear
The informative WAVE annex in ITU-R BS.2088-2 describes fact and its sample-length calculation for non-PCM WAVE formats. It also distinguishes ordinary PCM cases and notes that this chunk is not used in the current BW64 format. The general WAVE background must therefore not be turned into a requirement to add fact to every BW64 or PCM file.
Inspect the actual format description
Microsoft’s WAVEFORMATEX documentation gives format-specific rules for compressed representations and additional configuration. A reader needs the declared format and relevant extension before interpreting block geometry or estimating output. A data chunk containing compressed bytes is not made PCM merely by its WAVE wrapper or a familiar filename extension. Preserve the format description beside the length field.
Locate a duration or conversion discrepancy
A maintainer can compare the applicable fact value, sample rate, complete compressed frames and the resulting output length under an authorized decoder workflow. A viewer can report the displayed total and audible ending without editing binary fields. Keep originals if a conversion is necessary. The useful outcome is the correct source for a length calculation and a clear scope for that evidence, distinguishing a mistaken byte formula from inconsistent metadata and actual missing audio rather than assuming one successful header read proves the whole file can play.
