I was looking through some code, and I stumbled upon this line of code. (With other lines of code to provide context)
void write32le(int in, unsigned char * buf) {
buf[0]=in&0xff;
buf[1]=(in>>8)&0xff;
buf[2]=(in>>16)&0xff;
buf[3]=(in>>24)&0xff;
}
.......
unsigned char wavhead[44] = {
0x52, 0x49, 0x46, 0x46, 0x00, 0x00, 0x00, 0x00, 0x57, 0x41, 0x56, 0x45, 0x66, 0x6D, 0x74, 0x20,
0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x00, 0x10, 0x00, 0x64, 0x61, 0x74, 0x61, 0x00, 0x00, 0x00, 0x00
};
.......
write32le(outsizetotal,wavhead+4);
The last two lines pieces of code are in the same function if that makes a difference, and the question I have is in the last line. "wavhead+4", what exactly is it doing? Appending the number 4 to 'wavhead'?