code: public void getChannelSamples(int channel, double[] interleavedSamples,
                                    double[] channelSamples) {
          int nbChannels = getFormat().getChannels();
          for (int i = 0; i < channelSamples.length; i++) {
              channelSamples[i] = interleavedSamples[nbChannels * i + channel];
          }
      }
docs: Extract samples of a particular channel from interleavedSamples and copy
  them into channelSamples
  
  @param channel channel
  @param channelSamples channelSamples
  @param interleavedSamples interleavedSamples
  @param channelSamples channelSamples