I am accessing raw audio data using AudioRawData::GetBuffer method and dumping it to a file. I want to convert this PCM binary files to wav files using ffmeg command.
fmpeg -f s16le -ar 32k -ac 1 -i file.pcm file.wav
I tried different options but failed to find the correct combination. Can someone point me to the right direction? My question mainly about byte order, resolution and sign of the PCM stream.