title: Can someone explain .wav(WAVE) file headers?
body: <p>OK, so I'm trying to make a program that will manipulate .wav files, and I've seen <a href="https://stackoverflow.com/questions/5810164/how-can-i-write-wav-file-from-byte-array-in-java">this question/answers</a>, but I'm not entirely sure as to what each piece of data in the header refers to. For example, what does a "chunk" refer to? Is that a specific number of bits/bytes?</p>
  
  <p>If somebody could just tell me, at least in the format used in this question, what each datum being written to the .wav, aside from the constant String Literals and the 'data' array, refer to? In particular I'd especially like to know what a "chunk" is, and how Sample Rate, Byte Rate, Bytes per Sample, and Bytes per Sample for all Channels relate?(I suspect Byte Rate is Sample Rate * Bytes per Sample, but what about the 'for all channels' one?)</p>
  
  <p>Any help is appreciated.</p>