-3

Can some one tell me the WAV file header information for A-Law and Mu-Law?

Marxist Ali
  • 65
  • 2
  • 11

1 Answers1

2

In short, the WAVE format is a RIFF specification for mutlimedia files, which uses "chunks" to store data. Similar to a type-length-value representation, each chunk contains information about its own type and length (the fields SubChunkID and SubChunkSize) before the rest of the data.The information about the audio compression is stored in the "fmt" chunk.

Read this and this for more information.

mbx
  • 6,292
  • 6
  • 58
  • 91
Eitan T
  • 32,660
  • 14
  • 72
  • 109
  • 1
    The interesting - not answered - question would be what to expect at offset 20 (`0x14` and `0x15` 2 bytes) as AudioFormat. Obviously PCM = 1 (i.e. Linear quantization) but what do we expect for a-law, what for mu-law? From what I read from one of the linked sites, the following values are IBM specific and not a-law/mu-law in general (`$0101` IBM mu-law (custom), `$0102` = IBM a-law (custom)). I've seen `$14=06, $15=00` for a-law being used in the wild. So there may be other common values for that, who knows. – mbx Nov 25 '20 at 14:46