|
|
The RIFF chunk makes up the file header, which describes the file size and contained data.
|
|
|
|
|
|
## Format
|
|
|
|
|
|
Sizes and offsets in bytes.
|
|
|
|
|
|
| Offset | Size | Name | Description |
|
|
|
| ------ | ----:| ---- | ----------- |
|
|
|
| 0x00 | 4 | Chunk ID | "RIFF" (0x52494646) |
|
|
|
| 0x04 | 4 | Data Size | Size of the file, minus 8 bytes |
|
|
|
| 0x08 | 4 | RIFF Type | Type of data contained in this file[^1] |
|
|
|
|
|
|
- Format string: `<4sI4s`
|
|
|
|
|
|
[^1]: Since this is meant to work primarily with `.wav` files, we expect the RIFF Type to be `WAVE` (0x57415645). |
|
|
\ No newline at end of file |