lib/minim/src/ddf/minim/javasound/FloatSampleBuffer.java
/**
	 * Copies the specified part of this buffer to the destination buffer. 
	 * At most, <code>dest</code>'s number of samples, number of
	 * channels are copied. 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 srcOffset the start position in this buffer, where to start reading samples 
	 * @param dest the buffer to write to
	 * @param destOffset the position in <code>dest</code> where to start
	 *            writing the samples
	 * @param count the number of samples to be copied
	 * @return the number of samples copied
	 */
Copies the specified part of this buffer to the destination buffer.
At most, dest's number of samples, number of
channels are copied. 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.


Copies the specified part of this buffer to the destination buffer . At most dest ' s number of samples number of channels are copied . 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 .
public int copyTo(int srcOffset, FloatSampleBuffer dest, int destOffset, int count) {
		if (srcOffset + count > getSampleCount()) {
			count = getSampleCount() - srcOffset;
		}
		if (count + destOffset > dest.getSampleCount()) {
			count = dest.getSampleCount() - destOffset;
		}
		int localChannelCount = getChannelCount();
		if (localChannelCount > dest.getChannelCount()) {
			localChannelCount = dest.getChannelCount();
		}
		for (int ch = 0; ch < localChannelCount; ch++) {
			System.arraycopy(getChannel(ch), srcOffset, dest.getChannel(ch),
					destOffset, count);
		}
		return count;
	}
public int copyTo ( int srcOffset , FloatSampleBuffer dest , int destOffset , int count ) { if ( srcOffset + count > getSampleCount ( ) ) { count = getSampleCount ( ) - srcOffset ; } if ( count + destOffset > dest . getSampleCount ( ) ) { count = dest . getSampleCount ( ) - destOffset ; } int localChannelCount = getChannelCount ( ) ; if ( localChannelCount > dest . getChannelCount ( ) ) { localChannelCount = dest . getChannelCount ( ) ; } for ( int ch = 0 ; ch < localChannelCount ; ch ++ ) { System . arraycopy ( getChannel ( ch ) , srcOffset , dest . getChannel ( ch ) , destOffset , count ) ; } return count ; }
Copies the specified part of this buffer to the destination buffer.
Copies the specified part of this buffer to the destination buffer .