lib/minim/src/ddf/minim/javasound/FloatSampleBuffer.java
/**
	 * Resets this buffer with the audio data specified in the arguments. This
	 * FloatSampleBuffer's sample count will be set to
	 * <code>byteCount / format.getFrameSize()</code>.
	 * 
	 * @param lazy if true, then existing channels will be tried to be re-used
	 *            to minimize garbage collection.
	 * @throws IllegalArgumentException
	 */
Resets this buffer with the audio data specified in the arguments. This
FloatSampleBuffer's sample count will be set to
byteCount / format.getFrameSize().

@param lazy if true, then existing channels will be tried to be re-used
to minimize garbage collection.
Resets this buffer with the audio data specified in the arguments . This FloatSampleBuffer ' s sample count will be set to byteCount / format . getFrameSize () . @param lazy if true then existing channels will be tried to be re - used to minimize garbage collection .
public void initFromByteArray(byte[] buffer, int offset, int byteCount,
			AudioFormat format, boolean lazy) {
		if (offset + byteCount > buffer.length) {
			throw new IllegalArgumentException(
					"FloatSampleBuffer.initFromByteArray: buffer too small.");
		}
		int thisSampleCount = byteCount / format.getFrameSize();
		init(format.getChannels(), thisSampleCount, format.getSampleRate(),
				lazy);
		originalFormatType = FloatSampleTools.getFormatType(format);
		FloatSampleTools.byte2float(buffer, offset, channels, 0, sampleCount,
				format);
	}
public void initFromByteArray ( byte [ ] buffer , int offset , int byteCount , AudioFormat format , boolean lazy ) { if ( offset + byteCount > buffer . length ) { throw new IllegalArgumentException ( "FloatSampleBuffer.initFromByteArray: buffer too small." ) ; } int thisSampleCount = byteCount / format . getFrameSize ( ) ; init ( format . getChannels ( ) , thisSampleCount , format . getSampleRate ( ) , lazy ) ; originalFormatType = FloatSampleTools . getFormatType ( format ) ; FloatSampleTools . byte2float ( buffer , offset , channels , 0 , sampleCount , format ) ; }
Resets this buffer with the audio data specified in the arguments.
Resets this buffer with the audio data specified in the arguments .
// save format for automatic dithering mode