Question: is pcm and wav the same?
Answer: PCM and WAV both format contains raw PCM data, the only difference is their header(wav contains a header where pcm doesn't). ... Just get the PCM data and add the wav header on top of the PCM data.