lib/minim/src/ddf/minim/javasound/FloatSampleBuffer.java
/**
	 * Mixes <code>source</code> samples to this buffer by adding the sample values. 
	 * 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.
	 * <p>
	 * This method is not error tolerant, in particular, runtime exceptions
	 * will be thrown if the channel counts do not match, or if the
	 * offsets and count exceed the buffer's capacity.
	 * 
	 * @param source the source buffer from where to take samples and mix to this one
	 * @param sourceOffset offset in source where to start reading samples
	 * @param thisOffset offset in this buffer from where to start mixing samples
	 * @param count number of samples to mix
	 */
Mixes source samples to this buffer by adding the sample values.
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.

This method is not error tolerant, in particular, runtime exceptions
will be thrown if the channel counts do not match, or if the
offsets and count exceed the buffer's capacity.

@param source the source buffer from where to take samples and mix to this one
@param sourceOffset offset in source where to start reading samples
@param thisOffset offset in this buffer from where to start mixing samples
@param count number of samples to mix
Mixes source samples to this buffer by adding the sample values . 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 . This method is not error tolerant in particular runtime exceptions will be thrown if the channel counts do not match or if the offsets and count exceed the buffer ' s capacity . @param source the source buffer from where to take samples and mix to this one @param sourceOffset offset in source where to start reading samples @param thisOffset offset in this buffer from where to start mixing samples @param count number of samples to mix
public void mix(FloatSampleBuffer source, int sourceOffset, int thisOffset, int count) {
		int localChannelCount = 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+thisOffset] += otherChannel[i+sourceOffset];
			}
		}
	}
public void mix ( FloatSampleBuffer source , int sourceOffset , int thisOffset , int count ) { int localChannelCount = 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 + thisOffset ] += otherChannel [ i + sourceOffset ] ; } } }
Mixes <code>source</code> samples to this buffer by adding the sample values.
Mixes <code > source< / code > samples to this buffer by adding the sample values .