Yup, the code you found in this thread should get you started with a PCM file (which you could play back with software like Audacity without needing to add the WAV header to begin with).
Yup, the code you found in this thread should get you started with a PCM file (which you could play back with software like Audacity without needing to add the WAV header to begin with).