auto myStruct = new mystruct[1]; File f = File("myFile.wav", "wb"); f.rawWrite(myStruct); //this is 44 bytes f.rawWrite(shortWaveArray);
What I got in the file was this: -my 44 byte myStruct data + (4 bytes of zero)! -then, my shortWaveArray data What's with the 4 bytes of zero? Thanks