for (int i = 0; i < numSamples; i+= 2)  {
  short int s = *(buffer+i);
  *(buffer+i) -= *(buffer+i+1);
  *(buffer+i+1) -= s;
}

Example 1: Removing the center channel.

Back to Article