Core Development

The Wave (WAV) Audio File Format

Offset Name Definition Size Value Hex Bytes
The RIFF Header
0 RIFF ID This contains the letters "RIFF" to indicate the main file format. 4 RIFF 52 49 46 46
4 Size The remaining size in bytes: (file size - 8) bytes (little endian). 4 2048 24 08 00 00
8 Format This is the format of the remainder, which is "WAVE" in the case. 4 WAVE 57 41 56 45
The WAVE Header
12 Format ID The letters "fmt " indicate the wave format information. 4 fmt_ 66 6d 74 20
16 Format Size This size of the remainder of the wave format specification: size - 8. 4 16 10 00 00 00
20 Audio Format 1 = Linear PCM (Pulse Code Modulation) 2 1 01 00
22 Channels The number of channels of audio data: 1= Mono, 2 = Stereo, ... 2 2 02 00
24 Sample Rate The number of samples per second: 8000, 44100, ... 4 22050 22 56 00 00
28 Byte Rate Bytes per second: (Sample Rate)*Channels*(Bits Per Sample/8) 4 88200 88 58 01 00
32 Byte Alignment Bytes per sample: Channels*(Bits Per Sample/8) 2 4 04 00
34 Bits Per Sample The number of bits per sample: 8, 16, ... 2 16 10 00
The Data Portion
36 Data ID The letters "data" identify this as a data block. 4 data 64 61 74 61
40 Data Size The size of the data portion: Samples*Channels*(Bits Per Sample/8) 4 2048 00 08 00 00
44 Data This is the sample data: Samples*(Byte Alignment) 2048 5924 | ... 24 17 | ...
 
 

© 2007–2024 XoaX.net LLC. All rights reserved.