lib/minim/src/ddf/minim/javasound/JSBaseAudioRecordingStream.java
// TODO: this implementation of float[] read is way temporary
this implementation of float[] read is way temporary
this implementation of float [] read is way temporary
public float[] read()
    {
        if ( buffer.getSampleCount() != 1 )
        {
            buffer.changeSampleCount( 1, true );
            rawBytes = new byte[buffer.getByteArrayBufferSize( format )];
        }
        float[] samples = new float[buffer.getChannelCount()];
        if ( play )
        {
            mRead();
            for ( int i = 0; i < buffer.getChannelCount(); i++ )
            {
                samples[i] = buffer.getChannel( i )[0];
            }
        }
        return samples;
    }
public float [ ] read ( ) { if ( buffer . getSampleCount ( ) != 1 ) { buffer . changeSampleCount ( 1 , true ) ; rawBytes = new byte [ buffer . getByteArrayBufferSize ( format ) ] ; } float [ ] samples = new float [ buffer . getChannelCount ( ) ] ; if ( play ) { mRead ( ) ; for ( int i = 0 ; i < buffer . getChannelCount ( ) ; i ++ ) { samples [ i ] = buffer . getChannel ( i ) [ 0 ] ; } } return samples ; }
TODO: this implementation of float[] read is way temporary
TODO : this implementation of float [] read is way temporary