The secret sauce is the following which will convert the complex 2
channel float
format to "signed word" (two channel short) format that sox
understands:
--------------------------------------------------------------------------
/* convert double 4-byte float
(complex) data to
double 2-byte short numbers for 2 channel stereo
*/
#include <stdio.h>
FILE *input_file, *output_file;
int i,int_j,int_k;
float j,k;