Audio & MIDI
PCM WAVEFORMATEX builder
Generate consistent PCM block-alignment and byte-rate fields.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
nBlockAlign = channels × stored bits/8. nAvgBytesPerSec = sample rate × block alignment.
48 kHz stereo with packed 24-bit samples uses 6-byte blocks and 288,000 bytes/second.
Limits
Integer PCM only. For 24 valid bits stored in a 32-bit container, choose stored width 32; this does not generate a WAVEFORMATEXTENSIBLE structure.