I have an assignment based on the above stated problem. The sampling frequency and size per sample would be known in the problem. I just need an idea about the kind of coding that would be required for this.
I have an assignment based on the above stated problem. The sampling frequency and
Share
The sampling frequency is irrelevant for this, but the size per sample (typically 8 or 16 bit per channel per sample) decides which pointer-size you need to use, so here the example of 8 bit per channel:
To do the same for 2 channel 16 bit interleaved audio you just declare all 3 buffers as
short*and insteadmalloc(numsamples*2)