lib/minim/src/ddf/minim/javasound/JSBaseAudioRecordingStream.java
// returns number of samples read, not bytes
returns number of samples read, not bytes
returns number of samples read not bytes
private int mRead()
    {
    	int bytesRead = rawBytes.length;
        if ( loop )
        {
            readBytesLoop();
        }
        else
        {
            bytesRead = readBytes();
        }
        int frameCount = bytesRead / format.getFrameSize();
        synchronized ( buffer )
        {
            buffer.setSamplesFromBytes( rawBytes, 0, format, 0, frameCount );
        }
        return frameCount;
    }
private int mRead ( ) { int bytesRead = rawBytes . length ; if ( loop ) { readBytesLoop ( ) ; } else { bytesRead = readBytes ( ) ; } int frameCount = bytesRead / format . getFrameSize ( ) ; synchronized ( buffer ) { buffer . setSamplesFromBytes ( rawBytes , 0 , format , 0 , frameCount ) ; } return frameCount ; }
returns number of samples read, not bytes
returns number of samples read not bytes
// read in a full buffer of bytes from the file // convert them to floating point