lib/minim/src/ddf/minim/javasound/FloatSampleBuffer.java
/**
	 * Mix down of n channels to one channel.<br>
	 * It uses a simple mixdown: all other channels are added to first channel.<br>
	 * The volume is NOT lowered ! Be aware, this might cause clipping when
	 * converting back to integer samples.
	 */
Mix down of n channels to one channel.
It uses a simple mixdown: all other channels are added to first channel.
The volume is NOT lowered . Be aware, this might cause clipping when
converting back to integer samples.
Mix down of n channels to one channel . It uses a simple mixdown : all other channels are added to first channel . The volume is NOT lowered . Be aware this might cause clipping when converting back to integer samples .
public void mixDownChannels() {
		float[] firstChannel = getChannel(0);
		int localSampleCount = getSampleCount();
		for (int ch = getChannelCount() - 1; ch > 0; ch--) {
			float[] thisChannel = getChannel(ch);
			for (int i = 0; i < localSampleCount; i++) {
				firstChannel[i] += thisChannel[i];
			}
			removeChannel(ch);
		}
	}
public void mixDownChannels ( ) { float [ ] firstChannel = getChannel ( 0 ) ; int localSampleCount = getSampleCount ( ) ; for ( int ch = getChannelCount ( ) - 1 ; ch > 0 ; ch -- ) { float [ ] thisChannel = getChannel ( ch ) ; for ( int i = 0 ; i < localSampleCount ; i ++ ) { firstChannel [ i ] += thisChannel [ i ] ; } removeChannel ( ch ) ; } }
Mix down of n channels to one channel.<br>
 It uses a simple mixdown: all other channels are added to first channel.<br>
 The volume is NOT lowered !
Mix down of n channels to one channel . <br > It uses a simple mixdown : all other channels are added to first channel . <br > The volume is NOT lowered !