lib/minim/src/ddf/minim/javasound/FloatSampleBuffer.java
/**
	 * Mixes <code>source</code> to this buffer by adding all samples. At
	 * most, <code>source</code>'s number of samples, number of channels are
	 * mixed. None of the sample count, channel count or sample rate of either
	 * buffer are changed. In particular, the caller needs to assure that the
	 * sample rate of the buffers match.
	 * 
	 * @param source the buffer to be mixed to this buffer
	 */
Mixes source to this buffer by adding all samples. At
most, source's number of samples, number of channels are
mixed. None of the sample count, channel count or sample rate of either
buffer are changed. In particular, the caller needs to assure that the
sample rate of the buffers match.

@param source the buffer to be mixed to this buffer
Mixes source to this buffer by adding all samples . At most source ' s number of samples number of channels are mixed . None of the sample count channel count or sample rate of either buffer are changed . In particular the caller needs to assure that the sample rate of the buffers match . @param source the buffer to be mixed to this buffer
public void mix(FloatSampleBuffer source) {
		int count = getSampleCount();
		if (count > source.getSampleCount()) {
			count = source.getSampleCount();
		}
		int localChannelCount = getChannelCount();
		if (localChannelCount > source.getChannelCount()) {
			localChannelCount = source.getChannelCount();
		}
		for (int ch = 0; ch < localChannelCount; ch++) {
			float[] thisChannel = getChannel(ch);
			float[] otherChannel = source.getChannel(ch);
			for (int i = 0; i < count; i++) {
				thisChannel[i] += otherChannel[i];
			}
		}
	}
public void mix ( FloatSampleBuffer source ) { int count = getSampleCount ( ) ; if ( count > source . getSampleCount ( ) ) { count = source . getSampleCount ( ) ; } int localChannelCount = getChannelCount ( ) ; if ( localChannelCount > source . getChannelCount ( ) ) { localChannelCount = source . getChannelCount ( ) ; } for ( int ch = 0 ; ch < localChannelCount ; ch ++ ) { float [ ] thisChannel = getChannel ( ch ) ; float [ ] otherChannel = source . getChannel ( ch ) ; for ( int i = 0 ; i < count ; i ++ ) { thisChannel [ i ] += otherChannel [ i ] ; } } }
Mixes <code>source</code> to this buffer by adding all samples.
Mixes <code > source< / code > to this buffer by adding all samples .