Question: How do I properly use doublesToPcm for 24 bit data?
Asked by fkbash (79.130.172.x) on July 19 2017, 8:17am
Reply on July 19 2017, 1:32pm:Assuming input and output are planar (not interleaved):
for (x=0;x<nch;x++)
doublesToPcm(double_ptr[x], 1, num_samples, char_ptr[x], 24, 1,0);
If interleaved, then:
for (x=0;x<nch;x++)
doublesToPcm(double_ptr+x, nch, num_samples, char_ptr + 3*x, 24, nch,0);